[gnome-settings-daemon] common: Update output-from-settings when the outputs change



commit f0e5d243beb7f98d9be9e00a3d5547024b8eb22d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 10 15:25:54 2014 +0100

    common: Update output-from-settings when the outputs change
    
    Outputs being connected/disconnected should update the input devices that
    are mapped to these through config, so they are remapped/unmapped correctly
    after the change.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=739891

 plugins/common/gsd-device-mapper.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index 15cc3e6..41cd0f5 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -124,6 +124,8 @@ enum {
 
 static GnomeRROutput * input_info_find_size_match (GsdInputInfo  *input,
                                                    GnomeRRScreen *rr_screen);
+static void            input_info_update_settings_output (GsdInputInfo *info);
+
 
 static guint signals[N_SIGNALS] = { 0 };
 
@@ -817,6 +819,8 @@ mapper_recalculate_candidates (GsdDeviceMapper *mapper)
        while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &input)) {
                GnomeRROutput *outputs[N_OUTPUT_PRIORITIES] = { 0 };
 
+               input_info_update_settings_output (input);
+
                /* Device has an output from settings */
                if (input->output)
                        continue;


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