comparison 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
comparison
equal deleted inserted replaced
4553:a1af511bbbdd 4554:4deaba8b1b42
875 XDeleteProperty(SDL_Display, WMwindow, WM_HINTS); 875 XDeleteProperty(SDL_Display, WMwindow, WM_HINTS);
876 set = SDL_TRUE; 876 set = SDL_TRUE;
877 } 877 }
878 /* Finally unset the transient hints if necessary */ 878 /* Finally unset the transient hints if necessary */
879 if ( ! set ) { 879 if ( ! set ) {
880 /* NOTE: Does this work? */ 880 XDeleteProperty(SDL_Display, WMwindow, XA_WM_TRANSIENT_FOR);
881 XSetTransientForHint(SDL_Display, WMwindow, None);
882 } 881 }
883 } 882 }
884 } 883 }
885 884
886 static int X11_CreateWindow(_THIS, SDL_Surface *screen, 885 static int X11_CreateWindow(_THIS, SDL_Surface *screen,