diff options
-rw-r--r-- | ecore/src/lib/ecore_x/ecore_x.c | 2 | ||||
-rw-r--r-- | ecore/src/lib/ecore_x/ecore_x_private.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x.c b/ecore/src/lib/ecore_x/ecore_x.c index a0639ec..479e10d 100644 --- a/ecore/src/lib/ecore_x/ecore_x.c +++ b/ecore/src/lib/ecore_x/ecore_x.c @@ -18,6 +18,7 @@ static Ecore_Fd_Handler *_ecore_x_fd_handler_handle = NULL; static Ecore_Event_Filter *_ecore_x_filter_handler = NULL; static int _ecore_x_event_shape_id = 0; static int _ecore_x_event_sync_id = 0; +static int _ecore_x_event_scrnsaver_id = 0; static int _ecore_x_event_handlers_num = 0; static void (**_ecore_x_event_handlers) (XEvent * event) = NULL; @@ -207,6 +208,7 @@ ecore_x_init(const char *name) /* For XScreenSaver extention of X */ if (XScreenSaverQueryExtension(_ecore_x_disp, &scrnsaver_base, &scrnsaver_err_base)) { + _ecore_x_event_scrnsaver_id = scrnsaver_base + ScreenSaverNotify /*FIXME*/ int v_major, v_minor; if (XScreenSaverQueryVersion(ecore_x_disp, v_major, v_minor)) { diff --git a/ecore/src/lib/ecore_x/ecore_x_private.h b/ecore/src/lib/ecore_x/ecore_x_private.h index bc9d87b..56db306 100644 --- a/ecore/src/lib/ecore_x/ecore_x_private.h +++ b/ecore/src/lib/ecore_x/ecore_x_private.h @@ -27,6 +27,9 @@ #ifdef ECORE_XINERAMA #include <X11/extensions/Xinerama.h> #endif +#ifdef ECORE_XSCREENSAVER +#include <X11/extensions/scrnsaver.h> +#endif #include "Ecore_X.h" |