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 515

Summary: SDL uses override redirect
Product: SDL Reporter: Martin Jürgens <martin>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: REOPENED --- QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: verdre
Version: don't know   
Hardware: x86   
OS: Linux   

Description Martin Jürgens 2007-11-14 05:37:04 UTC
Currently, SDL uses override redirect. Because of that, window managers are not aware that a window is opened when the application uses fullscreen.

Instead, to be well-behaved it should use the _NET_WM_STATE_FULLSCREEN hint defined in the Extended Window Manager Hints specification (EWMH).

Users can then for example minimize applications when they run full screen. There was some work regarding this my a Maemo developer, see http://www.nabble.com/x11-backend-and-OverrideRedirect-t2034208.html
Comment 1 Martin Jürgens 2008-05-31 10:56:11 UTC
*ping*, I'd also try to create a patch if you'd commit it..
Comment 2 Sam Lantinga 2009-09-20 23:49:35 UTC
We're rewriting the fullscreen code to be more window manager friendly in SDL 1.3.  You're more than welcome to submit a patch for SDL 1.3.

Thanks!
Comment 3 verdre 2019-02-05 16:54:15 UTC
This behaviour causes bugs like https://gitlab.gnome.org/GNOME/gnome-shell/issues/917 when used with the GNOME desktop environment, please reconsider fixing this.
Comment 4 Ryan C. Gordon 2019-07-30 17:34:16 UTC
(In reply to verdre from comment #3)
> This behaviour causes bugs like
> https://gitlab.gnome.org/GNOME/gnome-shell/issues/917 when used with the
> GNOME desktop environment, please reconsider fixing this.

Wait, is this still happening in 2019? In SDL2, this should only happen if the desktop doesn't support XRandR and _NET_WM_STATE_FULLSCREEN (and even that legacy code is going to be deleted once we deal with some X11 VNC servers that don't understand XRandR).

SDL 1.2 probably still does it, and we don't plan to fix that directly, but we're introducing a replacement 1.2 library that uses SDL2 behind the scenes, which will solve that issue.

--ryan.
Comment 5 Ryan C. Gordon 2019-07-30 17:35:24 UTC
> SDL 1.2 probably still does it, and we don't plan to fix that directly, but
> we're introducing a replacement 1.2 library that uses SDL2 behind the
> scenes, which will solve that issue.

Ah, the Gnome bug report says that Psychonauts causes this, which uses SDL 1.2.

--ryan.
Comment 6 Ryan C. Gordon 2019-07-30 17:49:38 UTC
(Sorry if you get several emails like this, we're marking a bunch of bugs.)

We're hoping to ship SDL 2.0.11 on a much shorter timeframe than we have historically done releases, so I'm starting to tag bugs we hope to have closed in this release cycle.

Note that this tag means we just intend to scrutinize this bug for the 2.0.11 release: we may fix it, reject it, or even push it back to a later release for now, but this helps give us both a goal and a wishlist for the next release.

If this bug has been quiet for a few months and you have new information (such as, "this is definitely still broken" or "this got fixed at some point"), please feel free to retest and/or add more notes to the bug.

--ryan.