X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver.h;h=cd797d47593ae07d3f2b57a4c9e309da5bf12c88;hb=72c1f4c1dc6ab07fe121a327ff1c30bf51ef74c1;hp=9e75c783097ac814d6f76a1b5407cadd95e11a18;hpb=df7adbee81405e2849728a24b498ad2117784b1f;p=xscreensaver diff --git a/driver/xscreensaver.h b/driver/xscreensaver.h index 9e75c783..cd797d47 100644 --- a/driver/xscreensaver.h +++ b/driver/xscreensaver.h @@ -87,6 +87,9 @@ struct saver_info { Bool fading_possible_p; /* Whether fading to/from black is possible. */ Bool throttled_p; /* Whether we should temporarily just blank the screen, not run hacks. */ + time_t blank_time; /* The time at which the screen was blanked + (if currently blanked) or unblanked (if + not blanked.) */ /* ======================================================================= @@ -115,6 +118,12 @@ struct saver_info { int unlock_failures; /* Counts failed login attempts while the screen is locked. */ + char *unlock_typeahead; /* If the screen is locked, and the user types + a character, we assume that it is the first + character of the password. It's stored here + for the password dialog to use to populate + itself. */ + /* ======================================================================= demoing @@ -304,9 +313,9 @@ extern Bool unlock_p (saver_info *si); extern Bool lock_priv_init (int argc, char **argv, Bool verbose_p); extern Bool lock_init (int argc, char **argv, Bool verbose_p); extern Bool passwd_valid_p (const char *typed_passwd, Bool verbose_p); -extern void set_locked_p (saver_info *si, Bool locked_p); #endif /* NO_LOCKING */ +extern void set_locked_p (saver_info *si, Bool locked_p); extern int move_mouse_grab (saver_info *si, Window to, Cursor cursor); @@ -365,6 +374,7 @@ extern void suspend_screenhack (saver_info *si, Bool suspend_p); extern Bool screenhack_running_p (saver_info *si); extern void emergency_kill_subproc (saver_info *si); extern Bool select_visual (saver_screen_info *ssi, const char *visual_name); +extern void store_saver_status (saver_info *si); extern const char *signal_name (int signal); /* ======================================================================= @@ -395,7 +405,7 @@ extern Bool display_is_on_console_p (saver_info *si); extern Atom XA_VROOT, XA_XSETROOT_ID; extern Atom XA_SCREENSAVER, XA_SCREENSAVER_VERSION, XA_SCREENSAVER_ID; -extern Atom XA_SCREENSAVER_TIME; +extern Atom XA_SCREENSAVER_STATUS, XA_LOCK, XA_BLANK; extern Atom XA_DEMO, XA_PREFS; #endif /* __XSCREENSAVER_H__ */