Skip to content

Commit

Permalink
x11: pass a long to XChangeProperty, not an int.
Browse files Browse the repository at this point in the history
The Xlib documentation demands that 32-bit values here be passed in a long,
even when long itself isn't a 32-bit value. Otherwise libx11 might read
memory incorrectly.

Fixes Bugzilla #3692.
  • Loading branch information
icculus committed Jul 5, 2017
1 parent b36755a commit c80c341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -375,7 +375,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
Atom _NET_WM_WINDOW_TYPE;
Atom wintype;
const char *wintype_name = NULL;
int compositor = 1;
long compositor = 1;
Atom _NET_WM_PID;
Atom XdndAware, xdnd_version = 5;
long fevent = 0;
Expand Down

0 comments on commit c80c341

Please sign in to comment.