Qt: Don't allow doubleclick-to-fullscreen in relative mode
This commit is contained in:
parent
7ac7175da5
commit
e8bb6bab10
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue