X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Ftypes.h;h=3ab8506cbb50a3ede62b4337680a2e70fc88f3d7;hb=3f1091236d800c43a3124c44c7da54e53f205b13;hp=63bec2583f5dd43ef52c8c1d51ef94977281239b;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/driver/types.h b/driver/types.h index 63bec258..3ab8506c 100644 --- a/driver/types.h +++ b/driver/types.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1993-2008 Jamie Zawinski +/* xscreensaver, Copyright (c) 1993-2011 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 @@ -54,6 +54,26 @@ typedef struct passwd_dialog_data passwd_dialog_data; typedef struct splash_dialog_data splash_dialog_data; typedef struct _monitor monitor; +typedef struct poll_mouse_data poll_mouse_data; +struct poll_mouse_data { + int root_x; + int root_y; + Window child; + unsigned int mask; + time_t time; +}; + +#ifdef HAVE_XINPUT +/* XInputExtension device support */ +#include + +typedef struct xinput_dev_info xinput_dev_info; +struct xinput_dev_info { + XDevice *device; + XEventClass press, release, valuator; + poll_mouse_data last_poll_mouse; +}; +#endif /* This structure holds all the user-specified parameters, read from the command line, the resource database, or entered through a dialog box. @@ -112,6 +132,8 @@ struct saver_preferences { int pointer_hysteresis; /* mouse motions less than N/sec are ignored */ Bool dpms_enabled_p; /* Whether to power down the monitor */ + Bool dpms_quickoff_p; /* Whether to power down monitor immediately + in "Blank Only" mode */ Time dpms_standby; /* how long until monitor goes black */ Time dpms_suspend; /* how long until monitor power-saves */ Time dpms_off; /* how long until monitor powers down */ @@ -200,7 +222,7 @@ struct saver_info { int xinput_DeviceButtonPress; /* Extension device event codes. */ int xinput_DeviceButtonRelease; /* Assigned by server at runtime */ int xinput_DeviceMotionNotify; - struct xinput_dev_info *xinput_devices; + xinput_dev_info *xinput_devices; int num_xinput_devices; # endif @@ -393,12 +415,7 @@ struct saver_screen_info { timers ======================================================================= */ - int poll_mouse_last_root_x; /* Used only when no server exts. */ - int poll_mouse_last_root_y; - Window poll_mouse_last_child; - unsigned int poll_mouse_last_mask; - time_t poll_mouse_last_time; - + poll_mouse_data last_poll_mouse; /* Used only when no server exts. */ /* ======================================================================= subprocs