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

Nick Schermer noreply at xfce.org
Sun Oct 28 10:44:13 CET 2012


Updating branch refs/heads/master
         to 7c45c31da0a14f22dc1aec02e94361674fac68e3 (commit)
       from 37d456cf9f52bcddcf8d009af909ff4b69331bc2 (commit)

commit 7c45c31da0a14f22dc1aec02e94361674fac68e3
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