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
5922}5922}
5923 5923
5924bool Application::shouldCaptureMouse() const {5924bool Application::shouldCaptureMouse() const {
5925 if (!_captureMouse) {5925 return _captureMouse && _glWidget->isActiveWindow() && !ui::Menu::isSomeSubmenuShown();
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;
5938}5926}
5939 5927
5940void Application::captureMouseChanged(bool captureMouse) {5928void Application::captureMouseChanged(bool captureMouse) {