Skip to content

Commit 4c22ab5

Browse files
committed
syswm: simplified x11.fswindow and x11.wmwindow assignments.
Reference PR #292.
1 parent 32a06ea commit 4c22ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SDL12_compat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7440,8 +7440,8 @@ SDL_GetWMInfo(SDL12_SysWMinfo *info12)
74407440
info12->info.x11.window = temp_window ? 0 : info20.info.x11.window;
74417441
if (SDL_VERSIONNUM(info12->version.major, info12->version.minor, info12->version.patch) >= SDL_VERSIONNUM(1, 0, 2)) {
74427442
/* While these don't exist in SDL2, some programs expect to get a valid window anyway. */
7443-
info12->info.x11.fswindow = temp_window ? 0 : info20.info.x11.window;
7444-
info12->info.x11.wmwindow = temp_window ? 0 : info20.info.x11.window;
7443+
info12->info.x11.fswindow = info20.info.x11.window;
7444+
info12->info.x11.wmwindow = info20.info.x11.window;
74457445
}
74467446
if (SDL_VERSIONNUM(info12->version.major, info12->version.minor, info12->version.patch) >= SDL_VERSIONNUM(1, 2, 12)) {
74477447
info12->info.x11.gfxdisplay = info20.info.x11.display; /* shrug */

0 commit comments

Comments
 (0)