X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Flock.c;h=a5579a37bd10f31489bf79952f377d3b7329f333;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hp=a79d21354297c55e4fb884544e5d9138fa495763;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08;p=xscreensaver diff --git a/driver/lock.c b/driver/lock.c index a79d2135..a5579a37 100644 --- a/driver/lock.c +++ b/driver/lock.c @@ -1,5 +1,5 @@ /* lock.c --- handling the password dialog for locking-mode. - * xscreensaver, Copyright (c) 1993-1997 Jamie Zawinski + * xscreensaver, Copyright (c) 1993-1998 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -22,6 +22,7 @@ #include #include #include "xscreensaver.h" +#include "resources.h" #ifndef VMS # include @@ -445,6 +446,17 @@ passwd_idle_timer (XtPointer closure, XtIntervalId *id) 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; @@ -597,9 +609,8 @@ pop_passwd_dialog (saver_info *si) 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 @@ -619,14 +630,12 @@ pop_passwd_dialog (saver_info *si) 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) {