Qt: Don't allow doubleclick-to-fullscreen in relative mode

This commit is contained in:
Stenzek 2024-11-08 20:45:12 +10:00
parent 7ac7175da5
commit e8bb6bab10
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ bool DisplayWidget::event(QEvent* event)
if (event->type() == QEvent::MouseButtonDblClick && if (event->type() == QEvent::MouseButtonDblClick &&
static_cast<const QMouseEvent*>(event)->button() == Qt::LeftButton && QtHost::IsSystemValid() && static_cast<const QMouseEvent*>(event)->button() == Qt::LeftButton && QtHost::IsSystemValid() &&
!FullscreenUI::HasActiveWindow() && !FullscreenUI::HasActiveWindow() &&
((!QtHost::IsSystemPaused() && ((!QtHost::IsSystemPaused() && !m_relative_mouse_enabled &&
!InputManager::HasAnyBindingsForKey(InputManager::MakePointerButtonKey(0, 0))) || !InputManager::HasAnyBindingsForKey(InputManager::MakePointerButtonKey(0, 0))) ||
(QtHost::IsSystemPaused() && !ImGuiManager::WantsMouseInput())) && (QtHost::IsSystemPaused() && !ImGuiManager::WantsMouseInput())) &&
Host::GetBoolSettingValue("Main", "DoubleClickTogglesFullscreen", true)) Host::GetBoolSettingValue("Main", "DoubleClickTogglesFullscreen", true))