[gnome-control-center] RANDR - Don't realign outputs if the current output didn't change resolutions



commit 8fc5964b826b3bfc34eac1d494b3b405017d665f
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Jul 16 11:27:30 2009 -0500

    RANDR - Don't realign outputs if the current output didn't change resolutions
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 capplets/display/xrandr-capplet.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index 75073f1..2284f49 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -786,6 +786,9 @@ realign_outputs_after_resolution_change (App *app, GnomeOutputInfo *output_that_
 
     g_assert (app->current_configuration != NULL);
 
+    if (output_that_changed->width == old_width && output_that_changed->height == old_height)
+	return;
+
     old_right_edge = output_that_changed->x + old_width;
     old_bottom_edge = output_that_changed->y + old_height;
 



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