src/video/x11/SDL_x11window.c
changeset 11876 dfde5d3f9781
parent 11811 5d94cb6b24d3
child 12070 1d65571b57dd
equal deleted inserted replaced
11875:91138f56d762 11876:dfde5d3f9781
   577     /* Let the window manager know what type of window we are. */
   577     /* Let the window manager know what type of window we are. */
   578     _NET_WM_WINDOW_TYPE = X11_XInternAtom(display, "_NET_WM_WINDOW_TYPE", False);
   578     _NET_WM_WINDOW_TYPE = X11_XInternAtom(display, "_NET_WM_WINDOW_TYPE", False);
   579     wintype = X11_XInternAtom(display, wintype_name, False);
   579     wintype = X11_XInternAtom(display, wintype_name, False);
   580     X11_XChangeProperty(display, w, _NET_WM_WINDOW_TYPE, XA_ATOM, 32,
   580     X11_XChangeProperty(display, w, _NET_WM_WINDOW_TYPE, XA_ATOM, 32,
   581                     PropModeReplace, (unsigned char *)&wintype, 1);
   581                     PropModeReplace, (unsigned char *)&wintype, 1);
   582 
   582     if (SDL_GetHintBoolean(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, SDL_TRUE)) {
   583     _NET_WM_BYPASS_COMPOSITOR = X11_XInternAtom(display, "_NET_WM_BYPASS_COMPOSITOR", False);
   583         _NET_WM_BYPASS_COMPOSITOR = X11_XInternAtom(display, "_NET_WM_BYPASS_COMPOSITOR", False);
   584     X11_XChangeProperty(display, w, _NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32,
   584         X11_XChangeProperty(display, w, _NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32,
   585                     PropModeReplace,
   585                         PropModeReplace,
   586                     (unsigned char *)&compositor, 1);
   586                         (unsigned char *)&compositor, 1);
       
   587     }
   587 
   588 
   588     {
   589     {
   589         Atom protocols[3];
   590         Atom protocols[3];
   590         int proto_count = 0;
   591         int proto_count = 0;
   591 
   592