[Marble-commits] KDE/kdeedu/marble/src/lib

Dennis Nienhüser earthwings at gentoo.org
Sun Jul 4 15:02:42 CEST 2010


SVN commit 1145875 by nienhueser:

Always eat mouse move events on top the map, otherwise oxygen moves the application window around in its default setting. Please test, needs to be backported to 4.5
CCBUG: 242414

 M  +4 -1      MarbleWidgetInputHandler.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidgetInputHandler.cpp #1145874:1145875
@@ -717,7 +717,10 @@
 
         MarbleWidgetInputHandler::d->m_widget->setCursor( d->m_arrowcur[dirX+1][dirY+1] );
 
-        return false; // let others, especially float items, still process the event
+        // let others, especially float items, still process the event
+        // Mouse move events need to be eaten to avoid the default oxygen behavior of
+        // moving the window around when we don't handle the event. See bug 242414.
+        return event->type() != QEvent::MouseMove;
     }
     else {
         if ( e->type() == QEvent::Wheel ) {


More information about the Marble-commits mailing list