Display layout: Disable move/resize while the game is on another output

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-22 18:42:53 +02:00
1 parent 7bd4b13baa
commit 923611b445
1 file changed
+2
+2
View File
@@ -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_);
}