Skip to content

Commit

Permalink
Merge pull request #1065 from leo78913/gamescope-close-button
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrumplex committed Jul 16, 2023
1 parent 20e9bf0 commit a25a5a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions launcher/ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
// disabled until we have an instance selected
ui->instanceToolBar->setEnabled(false);
setInstanceActionsEnabled(false);

// add a close button at the end of the main toolbar when running on gamescope / steam deck
// FIXME: detect if we don't have server side decorations instead
if (qgetenv("XDG_CURRENT_DESKTOP") == "gamescope") {
ui->mainToolBar->addAction(ui->actionCloseWindow);
}

}

// add the toolbar toggles to the view menu
Expand Down

0 comments on commit a25a5a7

Please sign in to comment.