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 - SDL is blocking window compositor.
Summary: SDL is blocking window compositor.
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: 2.0.13
Hardware: x86_64 Linux
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-22 10:52 UTC by tadaddd111111
Modified: 2020-08-22 21:10 UTC (History)
1 user (show)

See Also:


Attachments

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