diff options
author | Sam Lantinga <slouken@libsdl.org> | 2018-02-16 10:23:10 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2018-02-16 10:23:10 -0800 |
commit | f8023f1dd4387aac6fd185698fd5b23f4660ffd1 (patch) | |
tree | e166152101096648c996d316fc50ffacacce7b5a /include/SDL_hints.h | |
parent | 7eaf8603c734970302396830ddb5fb708805c967 (diff) |
Fixed bug 4085 - X11: Allow configuring _NET_WM_BYPASS_COMPOSITOR through SDL hints
Callum McGing
This patch allows the user to disable the behaviour that blocks the compositor through a new hint: SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR. This allows tools or other windowed applications to behave properly under KWin.
Diffstat (limited to 'include/SDL_hints.h')
-rw-r--r-- | include/SDL_hints.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/SDL_hints.h b/include/SDL_hints.h index 08a00c96b8..e657768b98 100644 --- a/include/SDL_hints.h +++ b/include/SDL_hints.h @@ -212,6 +212,18 @@ extern "C" { #define SDL_HINT_VIDEO_X11_NET_WM_PING "SDL_VIDEO_X11_NET_WM_PING" /** + * \brief A variable controlling whether the X11 _NET_WM_BYPASS_COMPOSITOR hint should be used. + * + * This variable can be set to the following values: + * "0" - Disable _NET_WM_BYPASS_COMPOSITOR + * "1" - Enable _NET_WM_BYPASS_COMPOSITOR + * + * By default SDL will use _NET_WM_BYPASS_COMPOSITOR + * + */ +#define SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR" + +/** * \brief A variable controlling whether the window frame and title bar are interactive when the cursor is hidden * * This variable can be set to the following values: |