[maemo-commits] [maemo-commits] r19250 - projects/haf/trunk/libmatchbox2/matchbox/core

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Sat Aug 29 17:27:17 EEST 2009
Author: kihamala
Date: 2009-08-29 17:27:15 +0300 (Sat, 29 Aug 2009)
New Revision: 19250

Modified:
   projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-client.c
Log:
        * matchbox/core/mb-wm-client.c (mb_wm_client_set_state): Do not assign
        a bitmask to 'old_state' because it is compared with Bool value later,
        using '==' operator.



Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-client.c
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-client.c	2009-08-28 17:20:05 UTC (rev 19249)
+++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-client.c	2009-08-29 14:27:15 UTC (rev 19250)
@@ -933,7 +933,7 @@
       return; /* not handled yet */
     }
 
-  old_state = (win->ewmh_state & state_flag);
+  old_state = (win->ewmh_state & state_flag) ? True : False;
 
   switch (state_op)
     {

More information about the maemo-commits mailing list