X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver.h;h=3ab14eaaab69e29863c5448c78cd6ed18e1f47cf;hb=8eb2873d7054e705c4e83f22d18c40946a9e2529;hp=cd797d47593ae07d3f2b57a4c9e309da5bf12c88;hpb=72c1f4c1dc6ab07fe121a327ff1c30bf51ef74c1;p=xscreensaver diff --git a/driver/xscreensaver.h b/driver/xscreensaver.h index cd797d47..3ab14eaa 100644 --- a/driver/xscreensaver.h +++ b/driver/xscreensaver.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1993-1998 Jamie Zawinski +/* xscreensaver, Copyright (c) 1993-2001 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 @@ -84,6 +84,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 */ + int mouse_grab_screen; /* The screen number the mouse grab is on */ + int keyboard_grab_screen; /* The screen number the keyboard grab is on */ 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. */ @@ -182,6 +184,7 @@ struct saver_info { struct saver_screen_info { saver_info *global; + int number; Screen *screen; Widget toplevel_shell; @@ -201,9 +204,11 @@ struct saver_screen_info { value here overrides prefs->install_cmap_p.) */ Visual *current_visual; /* The visual of the window. */ - Visual *default_visual; /* visual to use when none other specified */ int current_depth; /* How deep the visual (and the window) are. */ + Visual *default_visual; /* visual to use when none other specified */ + Visual *best_gl_visual; /* visual to use for GL hacks */ + Window real_vroot; /* The original virtual-root window. */ Window real_vroot_value; /* What was in the __SWM_VROOT property. */ @@ -301,6 +306,7 @@ extern void unblank_screen (saver_info *si); extern void get_screen_viewport (saver_screen_info *ssi, int *x_ret, int *y_ret, int *w_ret, int *h_ret, + int target_x, int target_y, Bool verbose_p); @@ -316,7 +322,9 @@ extern Bool passwd_valid_p (const char *typed_passwd, Bool verbose_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); +extern int move_mouse_grab (saver_info *si, Window to, Cursor cursor, + int to_screen_no); +extern int mouse_screen (saver_info *si); /* ======================================================================= @@ -340,7 +348,6 @@ extern int string_width (XFontStruct *font, char *s); extern void make_splash_dialog (saver_info *si); extern void handle_splash_event (saver_info *si, XEvent *e); -extern void skull (Display *, Window, GC, GC, int, int, int, int); /* ======================================================================= @@ -353,6 +360,7 @@ extern void activate_lock_timer (XtPointer si, XtIntervalId *id); extern void reset_watchdog_timer (saver_info *si, Bool on_p); extern void idle_timer (XtPointer si, XtIntervalId *id); extern void sleep_until_idle (saver_info *si, Bool until_idle_p); +extern void reset_timers (saver_info *si); /* ======================================================================= remote control @@ -365,6 +373,8 @@ extern void maybe_reload_init_file (saver_info *); subprocs ======================================================================= */ +extern void block_sigchld (void); +extern void unblock_sigchld (void); extern void hack_environment (saver_info *si); extern void hack_subproc_environment (saver_screen_info *ssi); extern void init_sigchld (void); @@ -386,6 +396,7 @@ extern FILE *real_stdout; extern void initialize_stderr (saver_info *si); extern void reset_stderr (saver_screen_info *ssi); extern void clear_stderr (saver_screen_info *ssi); +extern void shutdown_stderr (saver_info *si); /* ======================================================================= @@ -402,6 +413,7 @@ extern int BadWindow_ehandler (Display *dpy, XErrorEvent *error); extern Bool window_exists_p (Display *dpy, Window window); extern char *timestring (void); extern Bool display_is_on_console_p (saver_info *si); +extern Visual *get_best_gl_visual (saver_screen_info *ssi); extern Atom XA_VROOT, XA_XSETROOT_ID; extern Atom XA_SCREENSAVER, XA_SCREENSAVER_VERSION, XA_SCREENSAVER_ID;