# HG changeset patch # User Jasper St. Pierre # Date 1374382651 14400 # Node ID fc864efbc1a6d8ea2df9bca9f720a0e0ffb773f4 # Parent 30ec6dae748b4084b7a89ca71811ba8afece7157 Add support for the _NET_WM_BYPASS_COMPOSITOR hint This hints to window managers to unredirect the window to improve performance. diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -339,6 +339,8 @@ XSizeHints *sizehints; XWMHints *wmhints; XClassHint *classhints; + const long _NET_WM_BYPASS_COMPOSITOR_HINT_ON = 1; + Atom _NET_WM_BYPASS_COMPOSITOR; Atom _NET_WM_WINDOW_TYPE; Atom _NET_WM_WINDOW_TYPE_NORMAL; Atom _NET_WM_PID; @@ -532,6 +534,10 @@ PropModeReplace, (unsigned char *)&_NET_WM_WINDOW_TYPE_NORMAL, 1); + _NET_WM_BYPASS_COMPOSITOR = XInternAtom(display, "_NET_WM_BYPASS_COMPOSITOR", False); + XChangeProperty(display, w, _NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32, + PropModeReplace, + (unsigned char *)&_NET_WM_BYPASS_COMPOSITOR_HINT_ON, 1); { Atom protocols[] = {