From f2d8fc91ec37081f3f0c283f43671573c4f58e70 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 21 Feb 2015 18:46:06 +0100 Subject: [PATCH] + issue #0001970: Spaceball 5000 USB no longer works in Windows 7 in 0.15 dev versions --- src/Gui/GuiApplicationNativeEventAware.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Gui/GuiApplicationNativeEventAware.cpp b/src/Gui/GuiApplicationNativeEventAware.cpp index 2ae0d3dd0..de4432392 100644 --- a/src/Gui/GuiApplicationNativeEventAware.cpp +++ b/src/Gui/GuiApplicationNativeEventAware.cpp @@ -100,8 +100,9 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window) bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event) { - if (!activeWindow()) - return true; + // Maybe this causes the regression reported in #0001970. So to test it it will be commented out for now + //if (!activeWindow()) + // return true; QApplication::notify(object, event); if (event->type() == Spaceball::MotionEvent::MotionEventType)