Skip to content

Commit

Permalink
OpenGLWindow / Waveform viewer: reject FocusIn, allow global keyboard…
Browse files Browse the repository at this point in the history
… shortcuts
  • Loading branch information
ronso0 committed Apr 25, 2024
1 parent 3359f62 commit d9d8e1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widget/openglwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ bool OpenGLWindow::event(QEvent* pEv) {
return result;
}

if (t == QEvent::FocusIn) {
pEv->ignore();
return false; // clazy:exclude=base-class-event
}

// Send all remaining events to the widget that owns the window
// container widget that contains this QOpenGLWindow. With this mouse
// events, keyboard events, etc all arrive as intended, including the
Expand Down

0 comments on commit d9d8e1a

Please sign in to comment.