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



commit 10e10d46976c1d2645162d4c5a9331ad9d937b89
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 9413b31..6bf23cb 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 };
 
@@ -814,6 +816,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]