summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecore_x_scrnsaver.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ecore_x_scrnsaver.c b/ecore_x_scrnsaver.c
index ffb3f4c..9d4690c 100644
--- a/ecore_x_scrnsaver.c
+++ b/ecore_x_scrnsaver.c
@@ -6,3 +6,18 @@
#include "Ecore_X_ScreenSaver.h"
+
+int
+ecore_x_scrnsaver_query_extension(void)
+{
+ Bool Queryresult;
+ int *event_basep;
+ int *error_basep;
+
+ Queryresult = XScreenSaverQueryExtension(ecore_x_disp,event_basep, error_basep);
+
+ if (Queryresult == 0)
+ return 0;
+ else
+ return 1;
+}