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

Dennis Nienhüser earthwings at gentoo.org
Sun Jul 11 13:19:26 CEST 2010


SVN commit 1148639 by nienhueser:

Always eat mouse move events on top the map, otherwise oxygen moves the application window around in its default setting. Backport of commit 1145875.
BUG: 242414



 M  +4 -1      MarbleWidgetInputHandler.cpp  


--- branches/KDE/4.5/kdeedu/marble/src/lib/MarbleWidgetInputHandler.cpp #1148638:1148639
@@ -720,7 +720,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