summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;