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 - SDL sets broken WM_TRANSIENT_FOR
Summary: SDL sets broken WM_TRANSIENT_FOR
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-02 04:36 UTC by Robert Vollmert
Modified: 2010-07-18 11:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!