diff src/video/x11/SDL_x11video.c @ 4554:4deaba8b1b42 SDL-1.2

Fixed bug 1015 Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jul 2010 11:37:12 -0700
parents 485868a1c283
children
line wrap: on
line diff
--- 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);
 		}
 	}
 }