changeset 4555:9e73d17638d3

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:26 -0700
parents 116f05eb67c7
children cc06f306c053
files src/video/x11/SDL_x11window.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }
     }