[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Fixed above and left positioning.

Sean Davis noreply at xfce.org
Thu Sep 27 00:30:01 CEST 2012


Updating branch refs/heads/bluesabre/display-settings
         to b549e24f8384d686722b512420cebce0bcd1d116 (commit)
       from a57da1dd9d2b9dd1e3dc85627b39a4d0568aae00 (commit)

commit b549e24f8384d686722b512420cebce0bcd1d116
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed Sep 26 18:29:56 2012 -0400

    Fixed above and left positioning.

 dialogs/display-settings/main.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 2c17dfe..f7eacd9 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -265,7 +265,7 @@ display_setting_positions_changed (GtkComboBox *combobox,
     current_display = xfce_randr->active_output;
     
     switch (value) {
-        case XFCE_RANDR_PLACEMENT_LEFT: // Extend Left FIXME
+        case XFCE_RANDR_PLACEMENT_LEFT: // Extend Left
             /* Walk all supported modes of current display */
             modes = XFCE_RANDR_SUPPORTED_MODES (xfce_randr);
             for (n = 0; n < XFCE_RANDR_OUTPUT_INFO (xfce_randr)->nmode; ++n)
@@ -337,6 +337,12 @@ display_setting_positions_changed (GtkComboBox *combobox,
             break;
     }
     
+    /* Apply and save changes to secondary display */
+    xfce_randr->active_output = selected_display;
+    xfce_randr_save_output (xfce_randr, "Default", display_channel,
+                            xfce_randr->active_output);
+    xfce_randr_apply (xfce_randr, "Default", display_channel);
+    
     /* Restore the current display to the primary display. */
     xfce_randr->active_output = current_display;
     
@@ -345,6 +351,8 @@ display_setting_positions_changed (GtkComboBox *combobox,
                             xfce_randr->active_output);
     xfce_randr_apply (xfce_randr, "Default", display_channel);
     
+    
+    
 }
 
 static void


More information about the Xfce4-commits mailing list