Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -5922,19 +5922,7 @@ void Application::cameraModeChanged() { · 5921 unmodified lines | ||
| 5922 | 5922 | } |
| 5923 | 5923 | |
| 5924 | 5924 | 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(); | |
| 5938 | 5926 | } |
| 5939 | 5927 | |
| 5940 | 5928 | void Application::captureMouseChanged(bool captureMouse) { |