mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-31 23:03:33 +00:00
fix(gamescope): Updater UI
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -223,9 +223,10 @@ void UpdaterDialog::SetupUI() {
|
||||
const bool is_gamescope = !qgetenv("GAMESCOPE_WIDTH").isEmpty() || qgetenv("XDG_CURRENT_DESKTOP") == "gamescope";
|
||||
|
||||
if (is_gamescope) {
|
||||
// Force as a top-level window so Gamescope centers it correctly at 800p
|
||||
setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowStaysOnTopHint);
|
||||
// Do NOT set a minimum size based on desktop hints, let the layout work
|
||||
// ensure focus and visibility on Steam Deck
|
||||
setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
|
||||
setWindowModality(Qt::NonModal);
|
||||
resize(1100, 700);
|
||||
} else {
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
setMinimumSize(size());
|
||||
|
||||
Reference in New Issue
Block a user