summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-28 13:20:19 +0000
committerpuppetmaster <puppetmaster>2005-07-28 13:20:19 +0000
commitc5f7695d410c15170320ddbc43fd96a4c5a00b96 (patch)
treed0ac4ccaa4ab645884316cf04902deb9a32591a9
parentAdded Query For minor and major verions of XScreenSaver Extention of X (diff)
downloadelock-c5f7695d410c15170320ddbc43fd96a4c5a00b96.tar.xz
Added include for extensions on ecore_x_private.h
more for query
-rw-r--r--ecore/src/lib/ecore_x/ecore_x.c2
-rw-r--r--ecore/src/lib/ecore_x/ecore_x_private.h3
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"