From 1239921ca18a18a8b01834b672185866bfeb824c Mon Sep 17 00:00:00 2001 From: puppetmaster Date: Thu, 28 Jul 2005 10:13:28 +0000 Subject: Implementation of XScreenSaverQueryExtension --- ecore/src/lib/ecore_x/ecore_x.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ecore/src/lib/ecore_x/ecore_x.c b/ecore/src/lib/ecore_x/ecore_x.c index 2d52bc3..a55f729 100644 --- a/ecore/src/lib/ecore_x/ecore_x.c +++ b/ecore/src/lib/ecore_x/ecore_x.c @@ -177,6 +177,8 @@ ecore_x_init(const char *name) int shape_err_base = 0; int sync_base = 0; int sync_err_base = 0; + int scrnsaver_base = 0; + int scrnsaver_err_base = 0; if (_ecore_x_init_count > 0) { @@ -201,6 +203,15 @@ ecore_x_init(const char *name) if (!XSyncInitialize(_ecore_x_disp, &major, &minor)) _ecore_x_event_sync_id = 0; } + + /* For XScreenSaver extention of X */ + if (XScreenSaverQueryExtension(_ecore_x_disp, &scrnsaver_base, &scrnsaver_err_base)) + { + int v_major, v_minor; + } + + /***********************************/ + if (_ecore_x_event_sync_id + XSyncAlarmNotify >= LASTEvent) _ecore_x_event_handlers_num = _ecore_x_event_sync_id + XSyncAlarmNotify + 1; -- cgit v1.2.3