diff options
author | puppetmaster <puppetmaster> | 2005-07-28 22:46:29 +0000 |
---|---|---|
committer | puppetmaster <puppetmaster> | 2005-07-28 22:46:29 +0000 |
commit | 984b118420058a0df5df307b58a1ac5d50360f2a (patch) | |
tree | 6eca82bc423e1be9fb21a81d8687f7f0a718c0b2 | |
parent | Added ecore_x_screensaver_set_attributes() (diff) | |
download | elock-984b118420058a0df5df307b58a1ac5d50360f2a.tar.xz |
Begin of Handler
-rw-r--r-- | ecore/src/lib/ecore_x/ecore_x_screensaver.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x_screensaver.c b/ecore/src/lib/ecore_x/ecore_x_screensaver.c index 739350e..33b6459 100644 --- a/ecore/src/lib/ecore_x/ecore_x_screensaver.c +++ b/ecore/src/lib/ecore_x/ecore_x_screensaver.c @@ -35,31 +35,29 @@ ecore_x_screensaver_free_alloc_info(XScreenSaverQueryInfo * info) return; } -XSetWindowAttributes* +XSetWindowAttributes * ecore_x_screensaver_set_attributes() { - Ecore_X_Window root; - int screen; + Ecore_X_Window root; + int screen; XSetWindowAttributes *attr; - + root = DefaultRootWindow(_ecore_x_disp); screen = DefaultScreen(_ecore_x_disp); - if (!XScreenSaverSetAttributes (_ecore_x_disp,root, 0,0, - DisplayWidth (_ecore_x_disp, screen), - DisplayHeight(_ecore_x_disp, screen), - 0, - CopyFromParent, - CopyFromParent, - CopyFromParent, - mask, &attr)) - return NULL + if (!XScreenSaverSetAttributes(_ecore_x_disp, root, 0, 0, + DisplayWidth(_ecore_x_disp, screen), + DisplayHeight(_ecore_x_disp, screen), + 0, + CopyFromParent, + CopyFromParent, CopyFromParent, mask, &attr)) + return NULL; else - return attr; + return attr; } -/*int +int ecore_x_screensaver_event_handler_add(void) { Ecore_X_Window root; @@ -69,6 +67,8 @@ ecore_x_screensaver_event_handler_add(void) if (!XScreenSaverSelectInput (_ecore_x_disp, root, ScreenSaverNotifyMask | ScreenSaverCycleMask)) return 1; -FIXME -}*/ + if (!ecore_x_screensaver_set_attributes()) + return 1; + /* ... */ +} |