[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Thu Mar 30 00:59:01 CEST 2006


SVN commit 524196 by arwalker:

When in layout mode and dragging a selection rect, start from where the mouse was clicked rather than the top-left corner of the window

 M  +7 -2      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #524195:524196
@@ -322,6 +322,11 @@
   //kstdDebug() << "HANDLE PRESS" << endl;
   _pressDirection = -1;
 
+  if (_mode != LayoutMode) {
+    _pressTarget = 0L;
+    return false;
+  }  
+  
   _pressTarget = findDeepestChild(pos, false);
   if (_pressTarget) {
     KstViewObjectPtr p = _pressTarget;
@@ -333,8 +338,8 @@
     }
   }
 
-  if (_mode != LayoutMode && !_pressTarget) {
-    _pressTarget = 0L;
+  if (!_pressTarget) {
+    _moveOffset = pos;
     return false;
   }
 


More information about the Kst mailing list