From 923611b4450e99a7e72b271e79033e84571b5733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 22 Oct 2026 13:27:03 +0200 Subject: [PATCH] Display layout: Disable move/resize while the game is on another output Co-Authored-By: Claude Opus 5.5 (1M context) --- UI/DisplayLayoutScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/DisplayLayoutScreen.cpp b/UI/DisplayLayoutScreen.cpp index 259cb6cd6d..6bb565d497 100644 --- a/UI/DisplayLayoutScreen.cpp +++ b/UI/DisplayLayoutScreen.cpp @@ -343,6 +343,8 @@ void DisplayLayoutScreen::CreateViews() { mode_->AddChoice(ImageID("I_MOVE")); mode_->AddChoice(ImageID("I_RESIZE")); mode_->SetSelection(0, false); + // The game goes to another output, like a TV, which doesn't use this layout. + mode_->SetEnabled(screenManager()->FindOutput(OutputRole::Game) == nullptr); bottomControls->Add(mode_); }