summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-28 21:02:47 +0000
committerpuppetmaster <puppetmaster>2005-07-28 21:02:47 +0000
commit9fcd49d6c5e73942f15f7e91625268cdcd659fe5 (patch)
tree7bdeebf604a14640d9e2e9de48fa45bff6846462
parentfix for an forgoten ";" (diff)
downloadelock-9fcd49d6c5e73942f15f7e91625268cdcd659fe5.tar.xz
adding test for ecore_event_handler_num (caro)
-rw-r--r--ecore/src/lib/ecore_x/ecore_x.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x.c b/ecore/src/lib/ecore_x/ecore_x.c
index 07a502f..d9919a1 100644
--- a/ecore/src/lib/ecore_x/ecore_x.c
+++ b/ecore/src/lib/ecore_x/ecore_x.c
@@ -208,7 +208,11 @@ 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*/
+ _ecore_x_event_scrnsaver_id = scrnsaver_base + ScreenSaverNotify;
+
+ if (_ecore_x_event_scrnsaver_id >= LASTEvent)
+ _ecore_x_event_handlers_num = _ecore_x_event_scrnsaver_id + 1;
+
int v_major, v_minor;
if (XScreenSaverQueryVersion(ecore_x_disp, v_major, v_minor))
{