We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1015

Summary: SDL sets broken WM_TRANSIENT_FOR
Product: SDL Reporter: Robert Vollmert <rvollmert>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: x86_64   
OS: Linux   

Description Robert Vollmert 2010-07-02 04:36:40 UTC
I ran into trouble with an SDL application using SDL_RESIZABLE with the xmonad window manager, which treats the SDL window as a floating window. It does so because the window has a WM_TRANSIENT_FOR property (with invalid value 0x0).

This appears to be because of the call to XSetTransientForHint(SDL_Display, WMwindow, None). That seems to be an invalid use of XSetTransientForHint; I think gdb showed it returned an error. Maybe there's also a bug in libx11, in that XSetTransientForHint shouldn't actually set the property if an invalid parent window id is passed?

At any rate, removing that call solved the problem.

This was with current SDL-1.2 (HG) on Arch Linux, xmonad from darcs, libx11 1.3.4.
Comment 1 Robert Vollmert 2010-07-02 04:37:43 UTC
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469328 seems to be the same issue.
Comment 2 Sam Lantinga 2010-07-18 11:38:32 UTC
This is fixed in revision 4554:4deaba8b1b42, thanks!