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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Sep 17 19:59:58 EEST 2009
Author: gw
Date: 2009-09-17 19:59:55 +0300 (Thu, 17 Sep 2009)
New Revision: 19363

Modified:
   projects/haf/trunk/libmatchbox2/ChangeLog
   projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.h
   projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c
Log:
	Changes for Screen rotate speed, related to latest h-d commits and
	bug NB#139504.
	
	* matchbox/core/mb-window-manager.h: Add 
	  MBWindowManagerFlagLayoutRotated
	* matchbox/core/mb-wm-layout.c: When MBWindowManagerFlagLayoutRotated
	  is set, lay things out as if the screen were rotated.


Modified: projects/haf/trunk/libmatchbox2/ChangeLog
===================================================================
--- projects/haf/trunk/libmatchbox2/ChangeLog	2009-09-16 11:49:20 UTC (rev 19362)
+++ projects/haf/trunk/libmatchbox2/ChangeLog	2009-09-17 16:59:55 UTC (rev 19363)
@@ -1,3 +1,13 @@
+2009-09-17  Gordon Williams <gordon.williams at collabora.co.uk>
+
+	Changes for Screen rotate speed, related to latest h-d commits and
+	bug NB#139504.
+	
+	* matchbox/core/mb-window-manager.h: Add 
+	  MBWindowManagerFlagLayoutRotated
+	* matchbox/core/mb-wm-layout.c: When MBWindowManagerFlagLayoutRotated
+	  is set, lay things out as if the screen were rotated.
+
 2009-09-16  Kimmo Hämäläinen  <kimmo.hamalainen at nokia.com>
 
 	Release 0.2.68

Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.h
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.h	2009-09-16 11:49:20 UTC (rev 19362)
+++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.h	2009-09-17 16:59:55 UTC (rev 19363)
@@ -61,6 +61,7 @@
 {
   MBWindowManagerFlagDesktop           = (1<<0),
   MBWindowManagerFlagAlwaysReloadTheme = (1<<1),
+  MBWindowManagerFlagLayoutRotated     = (1<<2),
 } MBWindowManagerFlag;
 
 typedef enum

Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c	2009-09-16 11:49:20 UTC (rev 19362)
+++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-layout.c	2009-09-17 16:59:55 UTC (rev 19363)
@@ -598,7 +598,7 @@
 	(LayoutPrefFullscreen|LayoutPrefVisible))
       {
 	MBWMList *l, *transients;
-        
+
         transients = l = mb_wm_client_get_transients (client);
 
 	mb_wm_client_get_coverage (client, &coverage);
@@ -694,6 +694,11 @@
   MBWM_ASSERT (klass->layout_fullscreen);
 
   mb_wm_get_display_geometry (wm, &avail_geom);
+  if (wm->flags & MBWindowManagerFlagLayoutRotated) {
+    int t = avail_geom.width;
+    avail_geom.width = avail_geom.height;
+    avail_geom.height = t;
+  }
 
   /*
     cycle through clients, laying out each in below order.

More information about the maemo-commits mailing list