diff options
author | puppetmaster <puppetmaster> | 2005-07-28 10:13:28 +0000 |
---|---|---|
committer | puppetmaster <puppetmaster> | 2005-07-28 10:13:28 +0000 |
commit | 1239921ca18a18a8b01834b672185866bfeb824c (patch) | |
tree | bda11e551663adf1ca36641cdafb5491cdb7526a | |
parent | adding last snapshot of ecore for ecore_x_screensaver (diff) | |
download | elock-1239921ca18a18a8b01834b672185866bfeb824c.tar.xz |
Implementation of XScreenSaverQueryExtension
-rw-r--r-- | ecore/src/lib/ecore_x/ecore_x.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; |