[mutter/wayland] Monitor: don't shortcut set_power_save if the value is the same as the old one



commit 2b1eb206d31e760c848c22e40bda311df0aba0eb
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Mon Sep 9 13:03:04 2013 +0200

    Monitor: don't shortcut set_power_save if the value is the same as the old one
    
    We don't get notifications from X11 when the mode is reset, so
    our cached value can get stale. To work around that, always forward
    requests to the backend (and let it deal with ignoring the change
    if wanted)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707649

 src/core/monitor.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/core/monitor.c b/src/core/monitor.c
index f1cc444..39e0d1e 100644
--- a/src/core/monitor.c
+++ b/src/core/monitor.c
@@ -433,9 +433,6 @@ meta_monitor_manager_set_power_save_mode (MetaMonitorManager *manager,
 {
   MetaMonitorManagerClass *klass;
 
-  if (mode == manager->power_save_mode)
-    return;
-
   if (manager->power_save_mode == META_POWER_SAVE_UNKNOWN ||
       mode == META_POWER_SAVE_UNKNOWN)
     return;


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