diff options
-rw-r--r-- | NEWS | 8 | ||||
-rw-r--r-- | src/xfpm-dpms.c | 4 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,11 @@ +0.8.4.1 +======= +- Because on some systems we might not have the brightness keys mapped + brightness changes are not reflected to xfpm when keys are pressed, so + save the actual brightness before dimming the screen on idle to restore it + afterword. (bug #5811). +- + 0.8.4 ======= - Don't lock screen on lid event when multiple monitor are connected. diff --git a/src/xfpm-dpms.c b/src/xfpm-dpms.c index 3022096f..2cb3c5ea 100644 --- a/src/xfpm-dpms.c +++ b/src/xfpm-dpms.c @@ -252,7 +252,9 @@ xfpm_dpms_force_off (gpointer data) if ( !DPMSForceLevel (GDK_DISPLAY (), DPMSModeOff ) ) { g_warning ("Cannot set Force DPMSModeOff"); + goto out; } + XSync (GDK_DISPLAY (), FALSE); } out: @@ -283,7 +285,9 @@ xfpm_dpms_force_on (gpointer data) if ( !DPMSForceLevel (GDK_DISPLAY (), DPMSModeOn ) ) { g_warning ("Cannot set Force DPMSModeOn"); + goto out; } + XSync (GDK_DISPLAY (), FALSE); } out: |