Skip to content

Commit 0aeca8c

Browse files
SiegeLordExSiegeLord
authored andcommitted
Fix the fullscreen window x11 message.
The l[3] is meant to be 1, and l[4] is meant to be 0, see: https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#sourceindication and https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm45962883349936 to quote: window = the respective client window message_type = _NET_WM_STATE format = 32 data.l[0] = the action, as listed below data.l[1] = first property to alter data.l[2] = second property to alter data.l[3] = source indication other data.l[] elements = 0 Fixes #1358
1 parent a8200ee commit 0aeca8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/x/xwindow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ void _al_xwin_set_fullscreen_window(ALLEGRO_DISPLAY *display, int value)
154154

155155
xev.xclient.data.l[1] = X11_ATOM(_NET_WM_STATE_FULLSCREEN);
156156
xev.xclient.data.l[2] = 0;
157-
xev.xclient.data.l[3] = 0;
158-
xev.xclient.data.l[4] = 1;
157+
xev.xclient.data.l[3] = 1; /* 1 = normal application source */
158+
xev.xclient.data.l[4] = 0;
159159

160160
XSendEvent(
161161
x11,

0 commit comments

Comments
 (0)