diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-19 10:55:29 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-19 10:55:29 -0800 |
commit | 19aac4274bbac55ce944acfaf3274a4403fe392e (patch) | |
tree | dff53684286fd06d5fee15cea77b7bfe30231903 /mi/mieq.c | |
parent | 56d1793c435abbaababab031860f1160f09fff06 (diff) |
mi: Push screen-saver/DPMS handling to after the EQ pop operation.
This way we on't need to hold the mutex during the dixSaveScreens() call.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Tiago Vignatti <vignatti@c3sl.ufpr.br>
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'mi/mieq.c')
-rw-r--r-- | mi/mieq.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -314,16 +314,6 @@ mieqProcessInputEvents(void) master = NULL; while (miEventQueue.head != miEventQueue.tail) { - if (screenIsSaved == SCREEN_SAVER_ON) - dixSaveScreens (serverClient, SCREEN_SAVER_OFF, ScreenSaverReset); -#ifdef DPMSExtension - else if (DPMSPowerLevel != DPMSModeOn) - SetScreenSaverTimer(); - - if (DPMSPowerLevel != DPMSModeOn) - DPMSSet(serverClient, DPMSModeOn); -#endif - e = &miEventQueue.events[miEventQueue.head]; /* GenericEvents always have nevents == 1 */ @@ -346,6 +336,16 @@ mieqProcessInputEvents(void) type = event->u.u.type; master = (!dev->isMaster && dev->u.master) ? dev->u.master : NULL; + if (screenIsSaved == SCREEN_SAVER_ON) + dixSaveScreens (serverClient, SCREEN_SAVER_OFF, ScreenSaverReset); +#ifdef DPMSExtension + else if (DPMSPowerLevel != DPMSModeOn) + SetScreenSaverTimer(); + + if (DPMSPowerLevel != DPMSModeOn) + DPMSSet(serverClient, DPMSModeOn); +#endif + /* Custom event handler */ handler = miEventQueue.handlers[type]; |