Pass the flags in, not the window pointer!

This commit is contained in:
Sam Lantinga
2012-09-28 01:15:48 -07:00
parent 44c3a8a110
commit 67b3106028

View File

@@ -523,7 +523,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
}
/* Set the window manager state */
wmstate_count = X11_GetWMStateProperty(_this, window, wmstate_atoms);
wmstate_count = X11_GetWMStateProperty(_this, window->flags, wmstate_atoms);
if (wmstate_count > 0) {
XChangeProperty(display, w, data->_NET_WM_STATE, XA_ATOM, 32,
PropModeReplace,