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 5266

Summary: SDL is blocking window compositor.
Product: SDL Reporter: tadaddd111111
Component: mainAssignee: Ryan C. Gordon <icculus>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: icculus
Version: 2.0.13   
Hardware: x86_64   
OS: Linux   

Description tadaddd111111 2020-08-22 10:52:59 UTC
SDL is blocking window manager compositor. This can be fixed by turning off "Allow applications to block compositor" in systemsettings, howewer it's annoying, and it will not block also apps, where it is needed. There should be some function, such as SDL_Allow_Compositor(bool Allowed), or flag in SDL_Init() to leave enabled, or disable compositor.
Comment 1 Ryan C. Gordon 2020-08-22 21:10:17 UTC
Is this with X11? Set this environment variable:

    export SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR=0


Or if you want to force it in your app, do this before calling SDL_CreateWindow:

    SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");

--ryan.