Pass the flags in, not the window pointer!
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Sep 2012 01:15:48 -0700
changeset 6485 3f600ccf393c
parent 6484 b904bb684095
child 6486 e3264eea9607
Pass the flags in, not the window pointer!
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,