Skip to content

Commit 1c346ff

Browse files
SiegeLordExSiegeLord
authored andcommitted
Fix creating an initially maximized window under X11.
1 parent 61ed284 commit 1c346ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/x/xdisplay.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ static ALLEGRO_DISPLAY_XGLX *xdpy_create_display_locked(
464464
}
465465

466466
if (flags & ALLEGRO_MAXIMIZED) {
467+
/* _al_xwin_maximize works by comparing to current flag value, so we need
468+
* to start with an unmaximized state. */
469+
display->flags &= ~ALLEGRO_MAXIMIZED;
467470
_al_xwin_maximize(display, true);
468471
}
469472

0 commit comments

Comments
 (0)