Skip to content

Commit

Permalink
Make window smaller to avoid having GNOME maximizing it
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Oct 31, 2024
1 parent 7dfd073 commit 86c6c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ void mainLoop(AppParameters params) {
}
if (!fullscreen) {
// Make window as big as possible
const double scaleFactor = std::min((getDesktopWidth() * 0.925) / params.screenSize->x,
(getDesktopHeight() * 0.925) / params.screenSize->y);
const double scaleFactor = std::min((getDesktopWidth() * 0.85) / params.screenSize->x,
(getDesktopHeight() * 0.85) / params.screenSize->y);
if (scaleFactor > 1) {
setScaleFactor(std::floor(scaleFactor));
} else {
Expand Down

0 comments on commit 86c6c2a

Please sign in to comment.