summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-28 10:13:28 +0000
committerpuppetmaster <puppetmaster>2005-07-28 10:13:28 +0000
commit1239921ca18a18a8b01834b672185866bfeb824c (patch)
treebda11e551663adf1ca36641cdafb5491cdb7526a
parentadding last snapshot of ecore for ecore_x_screensaver (diff)
downloadelock-1239921ca18a18a8b01834b672185866bfeb824c.tar.xz
Implementation of XScreenSaverQueryExtension
-rw-r--r--ecore/src/lib/ecore_x/ecore_x.c11
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;