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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jul 28 15:22:08 EEST 2009
Author: aendrodi
Date: 2009-07-28 15:22:03 +0300 (Tue, 28 Jul 2009)
New Revision: 19001

Modified:
   projects/haf/trunk/libmatchbox2/ChangeLog
   projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.c
Log:
	* matchbox/core/mb-window-manager.c (mb_wm_handle_property_notify):
	  Detect changes to MBWM_ATOM_MAEMO_SUPPRESS_ROOT_RECONFIGURATION
	  via property state rather than a toggle.  Requires newer
	  hildon-desktop.


Modified: projects/haf/trunk/libmatchbox2/ChangeLog
===================================================================
--- projects/haf/trunk/libmatchbox2/ChangeLog	2009-07-28 10:25:46 UTC (rev 19000)
+++ projects/haf/trunk/libmatchbox2/ChangeLog	2009-07-28 12:22:03 UTC (rev 19001)
@@ -1,3 +1,10 @@
+2009-07-27  Adam Endrodi  <adam.endrodi at blumsoft.eu>
+
+	* matchbox/core/mb-window-manager.c (mb_wm_handle_property_notify):
+	  Detect changes to MBWM_ATOM_MAEMO_SUPPRESS_ROOT_RECONFIGURATION
+	  via property state rather than a toggle.  Requires newer
+	  hildon-desktop.
+
 2009-07-28  Kimmo Hämäläinen  <kimmo.hamalainen at nokia.com>
 
 	Release 0.2.51

Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.c
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.c	2009-07-28 10:25:46 UTC (rev 19000)
+++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.c	2009-07-28 12:22:03 UTC (rev 19001)
@@ -567,7 +567,6 @@
 	}
       else if (xev->atom == wm->atoms[MBWM_ATOM_MAEMO_SUPPRESS_ROOT_RECONFIGURATION])
         {
-          static Bool toggled;
           static unsigned orig_width, orig_height;
 
           /*
@@ -578,7 +577,7 @@
            * we don't interfere.  Let us assume the toggle is initially off.
            * If it's not hildon-desktop is borked anyway.
            */
-          if (!toggled)
+          if (xev->state == PropertyNewValue)
             { /* We're before rotation. */
               orig_width  = wm->xdpy_width;
               orig_height = wm->xdpy_height;
@@ -593,7 +592,6 @@
               fake.height = orig_width;
               mb_wm_handle_root_config_notify (&fake, wm);
             }
-          toggled = !toggled;
         }
 
       return True;

More information about the maemo-commits mailing list