[banshee/stable-1.8] FullscreenWindow: Fix full-screen on multi-head displays (bgo#629005)



commit 5bbb78aa35195c9434879b26d77aaa081b01b022
Author: Tim Fisken <tim_boetie fastmail fm>
Date:   Sun Nov 7 20:26:41 2010 +0800

    FullscreenWindow: Fix full-screen on multi-head displays (bgo#629005)
    
    Use GtkWindow.Resize rather than GtkWindow.SetDefaultSize, because
    SetDefaultSize only affects the size of the window on initial display.
    
    Also move the window to (bounds.X, bounds.Y), rather than (bounds.X, 0),
    because, if the two screens have different heights, 0 may not necessarily
    be the top of the screen.
    
    Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>

 .../Banshee.NowPlaying/FullscreenWindow.cs         |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs b/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs
index 590f54b..7a4134f 100644
--- a/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs
+++ b/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs
@@ -124,8 +124,8 @@ namespace Banshee.NowPlaying
             Gdk.Screen screen = Screen;
             int monitor = screen.GetMonitorAtWindow (parent.GdkWindow);
             Gdk.Rectangle bounds = screen.GetMonitorGeometry (monitor);
-            Move (bounds.X, 0);
-            SetDefaultSize (bounds.Width, bounds.Height);
+            Move (bounds.X, bounds.Y);
+            Resize (bounds.Width, bounds.Height);
         }
 
         protected override void OnRealized ()



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