[gnome-settings-daemon/gnome-3-8] Revert "power: Force updating screen config when output is disconnected"



commit d731c3c92fe397b97943adc270819ce1e5fccbce
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Apr 28 19:14:37 2014 +0200

    Revert "power: Force updating screen config when output is disconnected"
    
    This reverts commit 2af30cc9ab334aaf151c28f412c7068a79ff5a83.
    
    Wrongly committed.

 plugins/power/gsd-power-manager.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 47bf63a..645df66 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3325,13 +3325,6 @@ on_randr_event (GnomeRRScreen *screen, gpointer user_data)
         setup_inhibit_lid_switch_timer (manager);
 }
 
-static void
-on_randr_connection_event (GnomeRRScreen *screen, GnomeRROutput *output, gpointer user_data)
-{
-        gnome_rr_screen_refresh (screen, NULL);
-        on_randr_event (screen, user_data);
-}
-
 #ifdef GSD_MOCK
 static gboolean
 received_sigusr2 (GsdPowerManager *manager)
@@ -3526,8 +3519,6 @@ gsd_power_manager_start (GsdPowerManager *manager,
 
         /* set up the screens */
         g_signal_connect (manager->priv->rr_screen, "changed", G_CALLBACK (on_randr_event), manager);
-        g_signal_connect (manager->priv->rr_screen, "output-connected", G_CALLBACK 
(on_randr_connection_event), manager);
-        g_signal_connect (manager->priv->rr_screen, "output-disconnected", G_CALLBACK 
(on_randr_connection_event), manager);
         on_randr_event (manager->priv->rr_screen, manager);
 
 #ifdef GSD_MOCK


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