[gnome-desktop] Fix gnome_rr_screen_set_dpms_mode()



commit 5f15e28eb548f6d0394879bd1bf396c48c7bce2d
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jul 27 12:49:50 2011 +0100

    Fix gnome_rr_screen_set_dpms_mode()
    
    This means it can actually power down the screen...

 libgnome-desktop/gnome-rr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 1ed4a56..3cab1ed 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1254,7 +1254,7 @@ gnome_rr_screen_set_dpms_mode (GnomeRRScreen *screen,
     if (current_mode == mode)
         goto out;
 
-    switch (state) {
+    switch (mode) {
     case GNOME_RR_DPMS_ON:
         state = DPMSModeOn;
         break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]