[maemo-commits] [maemo-commits] r18448 - in projects/haf/trunk/libmatchbox2: . debian matchbox/core

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed May 20 14:26:01 EEST 2009
Author: kihamala
Date: 2009-05-20 14:25:52 +0300 (Wed, 20 May 2009)
New Revision: 18448

Modified:
   projects/haf/trunk/libmatchbox2/ChangeLog
   projects/haf/trunk/libmatchbox2/debian/changelog
   projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c
Log:
don't reconfigure background windows in portrait mode


Modified: projects/haf/trunk/libmatchbox2/ChangeLog
===================================================================
--- projects/haf/trunk/libmatchbox2/ChangeLog	2009-05-19 15:45:34 UTC (rev 18447)
+++ projects/haf/trunk/libmatchbox2/ChangeLog	2009-05-20 11:25:52 UTC (rev 18448)
@@ -1,3 +1,9 @@
+2009-05-20  Kimmo Hämäläinen  <kimmo.hamalainen at nokia.com>
+
+	* matchbox/core/mb-wm-layout.c (mb_wm_layout_real_layout_free): Stop
+	reconfiguring windows once a window covering the whole screen was
+	encountered in the stack. Fixes: NB#117392
+
 2009-05-18  Daniel Elstner  <danielk at openismus.com>
 
         * matchbox/core/mb-wm.h: Do not define _GNU_SOURCE here, as this is

Modified: projects/haf/trunk/libmatchbox2/debian/changelog
===================================================================
--- projects/haf/trunk/libmatchbox2/debian/changelog	2009-05-19 15:45:34 UTC (rev 18447)
+++ projects/haf/trunk/libmatchbox2/debian/changelog	2009-05-20 11:25:52 UTC (rev 18448)
@@ -1,6 +1,8 @@
 matchbox-window-manager-2 (0.2.40-1~unreleased) unstable; urgency=low
 
-  * write_something_here
+  Kimmo:
+  * Fixes: NB#117392 - Window manager resizes/rotates applications that aren't
+    visible and don't support rotation
 
  -- Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>  Mon, 18 May 2009 11:20:12 +0300
 

Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c	2009-05-19 15:45:34 UTC (rev 18447)
+++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c	2009-05-20 11:25:52 UTC (rev 18448)
@@ -540,7 +540,7 @@
   MBGeometry             coverage;
   Bool                   need_change;
 
-  mb_wm_stack_enumerate(wm, client)
+  mb_wm_stack_enumerate_reverse(wm, client)
     if (mb_wm_client_get_layout_hints (client) ==
 	(LayoutPrefGrowToFreeSpace|LayoutPrefVisible))
       {
@@ -560,6 +560,17 @@
 					 &coverage,
 					 MBWMClientReqGeomIsViaLayoutManager);
 	  }
+
+        if (avail_geom->width < avail_geom->height &&
+            coverage.width >= avail_geom->width &&
+            coverage.height >= avail_geom->height)
+        {
+                /*
+          g_warning ("%s: don't configure background windows in portrait",
+                     __func__);
+                     */
+          break;
+        }
       }
 
   mb_wm_stack_enumerate(wm, client)


More information about the maemo-commits mailing list