[haiku-commits] r39750 - haiku/trunk/src/add-ons/decorators/SATDecorator

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 6 Dec 2010 20:31:11 +0100 (CET)

Author: czeidler
Date: 2010-12-06 20:31:11 +0100 (Mon, 06 Dec 2010)
New Revision: 39750
Changeset: http://dev.haiku-os.org/changeset/39750

Modified:
   haiku/trunk/src/add-ons/decorators/SATDecorator/SATDecorator.h
   haiku/trunk/src/add-ons/decorators/SATDecorator/SATWindow.cpp
Log:
Correctly check if the mouse has been on the tab.



Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/SATDecorator.h
===================================================================
--- haiku/trunk/src/add-ons/decorators/SATDecorator/SATDecorator.h      
2010-12-06 19:22:49 UTC (rev 39749)
+++ haiku/trunk/src/add-ons/decorators/SATDecorator/SATDecorator.h      
2010-12-06 19:31:11 UTC (rev 39750)
@@ -43,7 +43,7 @@
                        /*! Indicates that window is stacked */
                        void                            SetStackedMode(bool 
stacked, BRegion* dirty);
                        bool                            StackedMode() const
-                                                                       { 
return fStackedMode; };
+                                                                       { 
return fStackedMode; }
 
                        /*! Set the tab length if the decorator is in stacked 
mode and if
                                the tab is the last one in the tab bar. */

Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/SATWindow.cpp
===================================================================
--- haiku/trunk/src/add-ons/decorators/SATDecorator/SATWindow.cpp       
2010-12-06 19:22:49 UTC (rev 39749)
+++ haiku/trunk/src/add-ons/decorators/SATDecorator/SATWindow.cpp       
2010-12-06 19:31:11 UTC (rev 39750)
@@ -797,7 +797,7 @@
        if (decorator == NULL)
                return;
        BRect tabRect = decorator->TabRect();
-       if (mousePosition.y < tabRect.bottom
+       if (mousePosition.y < tabRect.bottom && mousePosition.y > tabRect.top
                && mousePosition.x <= frame.right + decorator->BorderWidth() +1
                && mousePosition.x >= frame.left + decorator->BorderWidth()) {
                // verify mouse stays on the tab


Other related posts:

  • » [haiku-commits] r39750 - haiku/trunk/src/add-ons/decorators/SATDecorator - clemens . zeidler