[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/workspace/kwin
From:       Hugo Pereira Da Costa <hugo.pereira () free ! fr>
Date:       2010-03-29 22:11:03
Message-ID: 20100329221103.B9B76AC887 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1108850 by hpereiradacosta:

Backport: r1108849
Properly account for decoration padding when calculating mousePosition in buttonReleaseEvent.
CCBUG: 231844


 M  +1 -3      events.cpp  


--- branches/KDE/4.4/kdebase/workspace/kwin/events.cpp #1108849:1108850
@@ -1390,9 +1390,7 @@
             {
             finishMoveResize( false );
             // mouse position is still relative to old Client position, adjust it
-            QPoint mousepos( x_root - x, y_root - y );
-            if( w == frameId() ) 
-                mousepos += QPoint( padding_left, padding_top );
+            QPoint mousepos( x_root - x + padding_left, y_root - y + padding_top );
             mode = mousePosition( mousepos );
             }
         else if( workspace()->decorationSupportsClientGrouping() )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic