X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=driver%2Fxscreensaver.h;h=347963a8cd211a07a1274c0616f4d904a01d7677;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hp=1082c46050fe0aa5769c78976ef122242595bb28;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b;p=xscreensaver diff --git a/driver/xscreensaver.h b/driver/xscreensaver.h index 1082c460..347963a8 100644 --- a/driver/xscreensaver.h +++ b/driver/xscreensaver.h @@ -112,6 +112,8 @@ struct saver_info { ======================================================================= */ Bool screen_blanked_p; /* Whether the saver is currently active. */ + Window mouse_grab_window; /* Window holding our mouse grab */ + Window keyboard_grab_window; /* Window holding our keyboard grab */ /* ======================================================================= @@ -124,7 +126,6 @@ struct saver_info { Bool dbox_up_p; /* Whether the demo-mode or passwd dialogs are currently visible */ - /* ======================================================================= demoing ======================================================================= */ @@ -134,6 +135,15 @@ struct saver_info { dialog box, which should be run next. */ + /* ======================================================================= + asking questions + ======================================================================= */ + + Bool question_up_p; /* Whether the question dialog is currently + visible. */ + Widget question_dialog; /* The question dialog, if any. */ + + /* ======================================================================= timers ======================================================================= */ @@ -248,7 +258,7 @@ struct saver_screen_info { extern void restore_real_vroot (saver_info *si); extern void disable_builtin_screensaver (saver_info *si, Bool turn_off_p); -extern void ensure_no_screensaver_running (Display *, Screen *); +extern Bool ensure_no_screensaver_running (Display *, Screen *); #ifdef HAVE_MIT_SAVER_EXTENSION extern Bool query_mit_saver_extension (saver_info *); @@ -370,7 +380,7 @@ extern Bool window_exists_p (Display *dpy, Window window); extern char *timestring (void); extern Atom XA_VROOT, XA_XSETROOT_ID; -extern Atom XA_SCREENSAVER_VERSION, XA_SCREENSAVER_ID; +extern Atom XA_SCREENSAVER, XA_SCREENSAVER_VERSION, XA_SCREENSAVER_ID; extern Atom XA_SCREENSAVER_TIME; #endif /* __XSCREENSAVER_H__ */