Fixed bug 1015

Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga 2010-07-18 11:37:12 -07:00
parent 54b35e5565
commit c1daff96e0

View file

@ -877,8 +877,7 @@ static void X11_SetSizeHints(_THIS, int w, int h, Uint32 flags)
}
/* Finally unset the transient hints if necessary */
if ( ! set ) {
/* NOTE: Does this work? */
XSetTransientForHint(SDL_Display, WMwindow, None);
XDeleteProperty(SDL_Display, WMwindow, XA_WM_TRANSIENT_FOR);
}
}
}