History

CR

HifiExperiments committed 6 years ago

Commit 932f5db1 parent 1403f896 files · +8 −15Browse files

Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Application.cpp+1−13
@@ -5922,19 +5922,7 @@ void Application::cameraModeChanged() { · 5921 unmodified lines
59225922 }
59235923
59245924 bool Application::shouldCaptureMouse() const {
5925− if (!_captureMouse) {
5926− return false;
5927− }
5928−
5929− if (!_glWidget->isActiveWindow()) {
5930− return false;
5931− }
5932−
5933− if (ui::Menu::isSomeSubmenuShown()) {
5934− return false;
5935− }
5936−
5937− return true;
5925+ return _captureMouse && _glWidget->isActiveWindow() && !ui::Menu::isSomeSubmenuShown();
59385926 }
59395927
59405928 void Application::captureMouseChanged(bool captureMouse) {