Ecore_X: We don't need to listen for Cycle events here. These raise

when the screensaver cycle interval passes. That is not what we are
interested in here. We only need to know when the screensaver
activates/deactivates.

NB: This cuts cpu usage down incredibly when screensavers are set with
a short timeout.



SVN revision: 77310
This commit is contained in:
Christopher Michael 2012-10-02 12:08:58 +00:00
parent 7032a54a09
commit f209467e08
1 changed files with 1 additions and 3 deletions

View File

@ -324,9 +324,7 @@ ecore_x_screensaver_event_listen_set(Eina_Bool on)
root = ((xcb_screen_t *)_ecore_xcb_screen)->root;
if (on)
xcb_screensaver_select_input(_ecore_xcb_conn, root,
XCB_SCREENSAVER_EVENT_NOTIFY_MASK |
XCB_SCREENSAVER_EVENT_CYCLE_MASK
);
XCB_SCREENSAVER_EVENT_NOTIFY_MASK);
else
xcb_screensaver_select_input(_ecore_xcb_conn, root, 0);
#endif