# HG changeset patch # User Sam Lantinga # Date 1348820148 25200 # Node ID 3f600ccf393ca60ebbde9fb35981bedf3588a28c # Parent b904bb684095aa416bf80233d8622c821b1dc266 Pass the flags in, not the window pointer! diff -r b904bb684095 -r 3f600ccf393c src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c Fri Sep 28 01:11:30 2012 -0700 +++ b/src/video/x11/SDL_x11window.c Fri Sep 28 01:15:48 2012 -0700 @@ -523,7 +523,7 @@ } /* 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,