[smuxi/stable] Frontend-GNOME: fix auto resizing the window layout on re-focus (closes: #1080)



commit 48294b217477dce937714db859be1945da4cc1f8
Author: Mirco Bauer <meebey meebey net>
Date:   Thu Sep 24 12:42:03 2015 +0200

    Frontend-GNOME: fix auto resizing the window layout on re-focus (closes: #1080)
    
    On Unity it was reported that the chat width changes to the original size when
    switching back to Smuxi from the Unity menu. Smuxi will now only adjust the
    layout if the window width has changed.

 src/Frontend-GNOME/MainWindow.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/Frontend-GNOME/MainWindow.cs b/src/Frontend-GNOME/MainWindow.cs
index b76a9af..3ff9531 100644
--- a/src/Frontend-GNOME/MainWindow.cs
+++ b/src/Frontend-GNOME/MainWindow.cs
@@ -394,8 +394,11 @@ namespace Smuxi.Frontend.Gnome
         {
             Trace.Call(e);
 
-            WindowWidth = e.Width;
-            CheckLayout();
+            var widthChanged = WindowWidth != e.Width;
+            if (widthChanged) {
+                WindowWidth = e.Width;
+                CheckLayout();
+            }
             return base.OnConfigureEvent(e);
         }
 


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