From 70a1124a1d95f4efbdb7c717b1e3dc52d6b991b5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 23 Mar 2015 19:44:04 +0100 Subject: [PATCH] + re-enable check for active window for spaceball events --- src/Gui/GuiApplicationNativeEventAware.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Gui/GuiApplicationNativeEventAware.cpp b/src/Gui/GuiApplicationNativeEventAware.cpp index de4432392..2ae0d3dd0 100644 --- a/src/Gui/GuiApplicationNativeEventAware.cpp +++ b/src/Gui/GuiApplicationNativeEventAware.cpp @@ -100,9 +100,8 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window) bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event) { - // Maybe this causes the regression reported in #0001970. So to test it it will be commented out for now - //if (!activeWindow()) - // return true; + if (!activeWindow()) + return true; QApplication::notify(object, event); if (event->type() == Spaceball::MotionEvent::MotionEventType)