Skip to content

Commit

Permalink
Qt: Don't allow doubleclick-to-fullscreen in relative mode
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 8, 2024
1 parent 7ac7175 commit e8bb6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duckstation-qt/displaywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ bool DisplayWidget::event(QEvent* event)
if (event->type() == QEvent::MouseButtonDblClick &&
static_cast<const QMouseEvent*>(event)->button() == Qt::LeftButton && QtHost::IsSystemValid() &&
!FullscreenUI::HasActiveWindow() &&
((!QtHost::IsSystemPaused() &&
((!QtHost::IsSystemPaused() && !m_relative_mouse_enabled &&
!InputManager::HasAnyBindingsForKey(InputManager::MakePointerButtonKey(0, 0))) ||
(QtHost::IsSystemPaused() && !ImGuiManager::WantsMouseInput())) &&
Host::GetBoolSettingValue("Main", "DoubleClickTogglesFullscreen", true))
Expand Down

0 comments on commit e8bb6ba

Please sign in to comment.