[banshee/stable-1.6] [MeeGo] maximize/undecorate main window in Nereid



commit f4b02ef0e018fcd13c7a35a99f742aea22b303e5
Author: Aaron Bockover <abockover novell com>
Date:   Sat May 1 13:41:18 2010 -0400

    [MeeGo] maximize/undecorate main window in Nereid
    
    Doing this in the MeeGo extension results in the title bar/window
    decoration being visible for a split second.

 src/Clients/Nereid/Nereid/PlayerInterface.cs       |    5 +++++
 .../Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs    |    8 --------
 2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index e647d69..8f71b8a 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -115,6 +115,11 @@ namespace Nereid
             interface_constructed = true;
             uint timer = Log.DebugTimerStart ();
 
+            if (PlatformDetection.IsMeeGo) {
+                Decorated = false;
+                Maximize ();
+            }
+
             BuildPrimaryLayout ();
             ConnectEvents ();
 
diff --git a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs
index 547b5ee..81e08e3 100644
--- a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs
+++ b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs
@@ -101,14 +101,6 @@ namespace Banshee.MeeGo
             // a separate top-level window for testing).
             panel = MeeGoPanel.Instance ?? new MeeGoPanel ();
 
-            // regular metacity does not seem to like this at all, crashing
-            // and complaining "Window manager warning: Buggy client sent a
-            // _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2e00020"
-            if (panel != null) {
-                elements_service.PrimaryWindow.Decorated = false;
-                elements_service.PrimaryWindow.Maximize ();
-            }
-
             if (panel == null) {
                 Log.Warning ("MeeGo extension initialized without a panel");
                 return;



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