Fixed bug 1015
authorSam Lantinga <slouken@libsdl.org>
Sun, 18 Jul 2010 11:37:26 -0700
changeset 4555 9e73d17638d3
parent 4552 116f05eb67c7
child 4556 cc06f306c053
Fixed bug 1015 Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead.
src/video/x11/SDL_x11window.c
--- a/src/video/x11/SDL_x11window.c	Sun Jul 18 11:23:34 2010 -0700
+++ b/src/video/x11/SDL_x11window.c	Sun Jul 18 11:37:26 2010 -0700
@@ -670,8 +670,7 @@
         }
         /* Finally unset the transient hints if necessary */
         if (!set) {
-            /* NOTE: Does this work? */
-            XSetTransientForHint(display, w, None);
+            XDeleteProperty(display, w, XA_WM_TRANSIENT_FOR);
         }
     }