X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver.h;h=92cba9672b3960b9e4257ffc6a99bb8744691fb2;hb=0bd2eabab3e404c6769fe8f59b639275e960c415;hp=1082c46050fe0aa5769c78976ef122242595bb28;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b;p=xscreensaver diff --git a/driver/xscreensaver.h b/driver/xscreensaver.h index 1082c460..92cba967 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 *); @@ -257,6 +267,10 @@ extern Bool query_mit_saver_extension (saver_info *); extern Bool query_sgi_saver_extension (saver_info *); #endif +/* Display Power Management System (DPMS) interface. */ +extern Bool monitor_powered_on_p (saver_info *si); +extern void monitor_power_on (saver_info *si); + /* ======================================================================= blanking @@ -325,6 +339,7 @@ extern Bool handle_clientmessage (saver_info *, XEvent *, Bool); subprocs ======================================================================= */ +extern void hack_environment (saver_info *si); extern void init_sigchld (void); extern void spawn_screenhack (saver_info *si, Bool first_time_p); extern void kill_screenhack (saver_info *si); @@ -370,7 +385,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__ */