[gnome-power-manager] Setup the reset event before we do the idle action, to finally fix blanking. Hopefully.
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager] Setup the reset event before we do the idle action, to finally fix blanking. Hopefully.
- Date: Tue, 16 Jun 2009 04:20:13 -0400 (EDT)
commit c63ba178f1c8795675f8ff578cc0c0606c66efd1
Author: Richard Hughes <richard hughsie com>
Date: Tue Jun 16 09:19:03 2009 +0100
Setup the reset event before we do the idle action, to finally fix blanking. Hopefully.
src/egg-idletime.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/egg-idletime.c b/src/egg-idletime.c
index a81386e..646786c 100644
--- a/src/egg-idletime.c
+++ b/src/egg-idletime.c
@@ -247,11 +247,14 @@ egg_idletime_event_filter_cb (GdkXEvent *gdkxevent, GdkEvent *event, gpointer da
/* are we not the reset symbol */
if (alarm->id != 0) {
- /* emit signal */
- g_signal_emit (idletime, signals [SIGNAL_ALARM_EXPIRED], 0, alarm->id);
-
/* we need the first alarm to go off to set the reset alarm */
egg_idletime_set_reset_alarm (idletime, alarm_event);
+
+ /* emit signal after setting up reset, as we don't want
+ * to miss the expired signal when we are dimming or
+ * turning off the screen for the other events */
+ g_signal_emit (idletime, signals [SIGNAL_ALARM_EXPIRED], 0, alarm->id);
+
return GDK_FILTER_REMOVE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]