From c1daff96e00e2ece09351d780cb6af122a214fd5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 18 Jul 2010 11:37:12 -0700 Subject: [PATCH] Fixed bug 1015 Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead. --HG-- branch : SDL-1.2 --- src/video/x11/SDL_x11video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index e1f2106a3..855388144 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -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); } } }