Skip to content

Commit

Permalink
1659: 3dconnexion space navigator moves view even when FreeCAD is not…
Browse files Browse the repository at this point in the history
… the active application

Check whether the freecad window is active before relaying the space navigator events.
  • Loading branch information
mghansen256 authored and wwmayer committed Aug 19, 2014
1 parent 808d2e9 commit 9419259
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gui/GuiApplicationNativeEventAware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)

bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event)
{
if (!activeWindow())
return true;

QApplication::notify(object, event);
if (event->type() == Spaceball::MotionEvent::MotionEventType)
{
Expand Down

0 comments on commit 9419259

Please sign in to comment.