# HG changeset patch # User Jasper St. Pierre # Date 1368551175 14400 # Node ID 21213026a6cd233306f990c43c5a7b6aab4badef # Parent 3dfec8235a71d4d68c6a938fee3d7ae0f1ea6074 Add support for the _NET_WM_BYPASS_COMPOSITOR hint This hints to window managers to unredirect the window to improve performance. diff -r 3dfec8235a71 -r 21213026a6cd src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c Mon May 13 23:00:50 2013 +0200 +++ b/src/video/x11/SDL_x11window.c Tue May 14 13:06:15 2013 -0400 @@ -532,7 +532,14 @@ PropModeReplace, (unsigned char *)&_NET_WM_WINDOW_TYPE_NORMAL, 1); - + { + const int _NET_WM_BYPASS_COMPOSITOR_HINT_ON = 1; + Atom _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[] = { data->WM_DELETE_WINDOW, /* Allow window to be deleted by the WM */