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 3180

Summary: libsdl2: windows set to fullscreen with SDL_WINDOW_FULLSCREEN_DESKTOP are not visible in xmonad
Product: SDL Reporter: Lucian Poston <lucianposton>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: lucianposton
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   
Attachments: c++ program demonstrating issue

Description Lucian Poston 2015-11-14 06:59:04 UTC
Created attachment 2302 [details]
c++ program demonstrating issue

Fullscreen windows created via SDL_CreateWindow() using the SDL_WINDOW_FULLSCREEN_DESKTOP flag are not visible when run in xmonad window manager. This also occurs to a window is set to fullscreen via SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP).

Attached simple program demonstrating issue.
Comment 1 Lucian Poston 2015-11-14 09:49:42 UTC
For anyone else encountering this issue, a workaround in xmonad is to enable ewmh. See http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-EwmhDesktops.html#v:ewmh

Enabling ewmh causes libsdl2 to use _NET_WM_STATE_FULLSCREEN code path instead of the legacy mode in SDL_x11window.c.