/* lock.c --- handling the password dialog for locking-mode.
- * xscreensaver, Copyright (c) 1993-1997 Jamie Zawinski <jwz@netscape.com>
+ * xscreensaver, Copyright (c) 1993-1998 Jamie Zawinski <jwz@netscape.com>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#include <X11/StringDefs.h>
#include <X11/Intrinsic.h>
#include "xscreensaver.h"
+#include "resources.h"
#ifndef VMS
# include <pwd.h>
x = (w / 2);
+#ifdef __sgi /* Kludge -- SGI's Motif hacks place buttons differently. */
+ {
+ static int sgi_mode = -1;
+ if (sgi_mode == -1)
+ sgi_mode = get_boolean_resource("sgiMode", "sgiMode") ? 1 : 0;
+
+ if (sgi_mode)
+ x = d;
+ }
+#endif /* __sgi */
+
x -= d/2;
y += d/2;
XMapRaised (dpy, XtWindow (passwd_dialog));
#endif
+ monitor_power_on (si);
#ifdef HAVE_ATHENA
pop_up_athena_dialog_box (parent, passwd_text, passwd_dialog,
passwd_form, 2);
#else
pop_up_dialog_box (passwd_dialog, passwd_form,
-#ifdef DEBUG
+ /* for debugging -- don't ask */
(si->prefs.debug_p ? 69 : 0) +
-#endif
2);
XtManageChild (passwd_form);
#endif
roger(roger_label, 0, 0);
#endif /* HAVE_ATHENA */
-#ifdef DEBUG
if (!si->prefs.debug_p)
-#endif
- XGrabServer (dpy); /* ############ DANGER! */
+ XGrabServer (dpy); /* ############ DANGER! */
/* this call to ungrab used to be in main_loop() - see comment in
xscreensaver.c around line 857. */
- ungrab_keyboard_and_mouse (si->dpy);
+ ungrab_keyboard_and_mouse (si);
while (passwd_state == pw_read)
{