summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-28 21:09:15 +0000
committerpuppetmaster <puppetmaster>2005-07-28 21:09:15 +0000
commit9cc6dc56f795dcccbfdc14e6e4e4f2aa9b3b3a25 (patch)
tree9ef45140a8fef7b1756c248d3344f44e8741c246
parentfix for code placement (diff)
downloadelock-9cc6dc56f795dcccbfdc14e6e4e4f2aa9b3b3a25.tar.xz
update for ecore_x_event_scrnsaver_id
-rw-r--r--ecore/src/lib/ecore_x/ecore_x.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x.c b/ecore/src/lib/ecore_x/ecore_x.c
index 02b29a1..66ef643 100644
--- a/ecore/src/lib/ecore_x/ecore_x.c
+++ b/ecore/src/lib/ecore_x/ecore_x.c
@@ -221,16 +221,20 @@ ecore_x_init(const char *name)
/* For XScreenSaver extention of X */
if (XScreenSaverQueryExtension(_ecore_x_disp, &scrnsaver_base, &scrnsaver_err_base))
- {
+ {
int v_major, v_minor;
if (XScreenSaverQueryVersion(ecore_x_disp, v_major, v_minor))
- {
- _ecore_x_event_scrnsaver_id = scrnsaver_base + ScreenSaverNotify;
+ {
+ _ecore_x_event_scrnsaver_id = 0;
+ }
+ else
+ {
+ _ecore_x_event_scrnsaver_id = scrnsaver_base + ScreenSaverNotify;
- if (_ecore_x_event_scrnsaver_id >= LASTEvent)
+ if (_ecore_x_event_scrnsaver_id >= LASTEvent)
_ecore_x_event_handlers_num = _ecore_x_event_scrnsaver_id + 1;
- }
- }
+ }
+ }
/***********************************/
#ifdef ECORE_XCURSOR