[haiku-commits] r36899 - haiku/trunk/src/apps/deskbar

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 22 May 2010 14:22:44 +0200 (CEST)

Author: axeld
Date: 2010-05-22 14:22:44 +0200 (Sat, 22 May 2010)
New Revision: 36899
Changeset: http://dev.haiku-os.org/changeset/36899/haiku

Modified:
   haiku/trunk/src/apps/deskbar/BarWindow.cpp
Log:
* Operator precedence bit me, Deskbar is working again.


Modified: haiku/trunk/src/apps/deskbar/BarWindow.cpp
===================================================================
--- haiku/trunk/src/apps/deskbar/BarWindow.cpp  2010-05-22 12:15:59 UTC (rev 
36898)
+++ haiku/trunk/src/apps/deskbar/BarWindow.cpp  2010-05-22 12:22:44 UTC (rev 
36899)
@@ -106,7 +106,7 @@
                        Activate(true);
 
                if ((modifiers() & (B_CONTROL_KEY | B_COMMAND_KEY))
-                               == B_CONTROL_KEY | B_COMMAND_KEY) {
+                               == (B_CONTROL_KEY | B_COMMAND_KEY)) {
                        // The window key was pressed - enter dragging code
                        fBarView->DragRegion()->MouseDown(
                                fBarView->DragRegion()->DragRegion().LeftTop());


Other related posts:

  • » [haiku-commits] r36899 - haiku/trunk/src/apps/deskbar - axeld