-/* xscreensaver, Copyright (c) 1993 Jamie Zawinski <jwz@lucid.com>
+/* xscreensaver, Copyright (c) 1993-1995 Jamie Zawinski <jwz@mcom.com>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
extern Widget passwd_done;
extern Widget passwd_cancel;
-extern create_passwd_dialog ();
+extern create_passwd_dialog P((Widget));
+extern void ungrab_keyboard_and_mouse P((void));
static enum { pw_read, pw_ok, pw_fail, pw_cancel, pw_time } passwd_state;
static char typed_passwd [1024];
XGrabServer (dpy); /* ############ DANGER! */
+ /* this call to ungrab used to be in main_loop() - see comment in
+ xscreensaver.c around line 696. */
+ ungrab_keyboard_and_mouse ();
+
while (passwd_state == pw_read)
{
XEvent event;