summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-29 19:05:35 +0000
committerpuppetmaster <puppetmaster>2005-07-29 19:05:35 +0000
commit1a63c671c3a21775d8cb3e116c4f0930c09e359c (patch)
tree3c5f1a3b89a259b6956646e9126994050988244d
parentfix for ecore_x_screensaver_set_attributes usage (diff)
downloadelock-1a63c671c3a21775d8cb3e116c4f0930c09e359c.tar.gz
Added ecore_x_screensaver_unset_attributes
-rw-r--r--ecore/src/lib/ecore_x/ecore_x_screensaver.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x_screensaver.c b/ecore/src/lib/ecore_x/ecore_x_screensaver.c
index 23f19a4..4552e84 100644
--- a/ecore/src/lib/ecore_x/ecore_x_screensaver.c
+++ b/ecore/src/lib/ecore_x/ecore_x_screensaver.c
@@ -96,4 +96,14 @@ ecore_x_screensaver_add (void)
}
}
}
+ return 0
+}
+
+int
+ecore_x_screensaver_unset_attributes
+{
+ if (!XScreenSaverUnsetAttributes(_ecore_x_disp, DefaultRootWindow(_ecore_x_disp)))
+ return 1;
+ else
+ return 0;
}