Fixed bug 1015 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 18 Jul 2010 11:37:12 -0700
branchSDL-1.2
changeset 4554 4deaba8b1b42
parent 4553 a1af511bbbdd
child 4557 4aa31b9207f2
Fixed bug 1015 Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead.
src/video/x11/SDL_x11video.c
--- a/src/video/x11/SDL_x11video.c	Sun Jul 18 11:24:37 2010 -0700
+++ b/src/video/x11/SDL_x11video.c	Sun Jul 18 11:37:12 2010 -0700
@@ -877,8 +877,7 @@
 		}
 		/* 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);
 		}
 	}
 }