src/video/x11/SDL_x11window.c
changeset 7490 fc864efbc1a6
parent 7445 bf50f0b74811
child 7522 b186724247dd
equal deleted inserted replaced
7489:30ec6dae748b 7490:fc864efbc1a6
   337     XSetWindowAttributes xattr;
   337     XSetWindowAttributes xattr;
   338     Window w;
   338     Window w;
   339     XSizeHints *sizehints;
   339     XSizeHints *sizehints;
   340     XWMHints *wmhints;
   340     XWMHints *wmhints;
   341     XClassHint *classhints;
   341     XClassHint *classhints;
       
   342     const long _NET_WM_BYPASS_COMPOSITOR_HINT_ON = 1;
       
   343     Atom _NET_WM_BYPASS_COMPOSITOR;
   342     Atom _NET_WM_WINDOW_TYPE;
   344     Atom _NET_WM_WINDOW_TYPE;
   343     Atom _NET_WM_WINDOW_TYPE_NORMAL;
   345     Atom _NET_WM_WINDOW_TYPE_NORMAL;
   344     Atom _NET_WM_PID;
   346     Atom _NET_WM_PID;
   345     Atom XdndAware, xdnd_version = 5;
   347     Atom XdndAware, xdnd_version = 5;
   346     Uint32 fevent = 0;
   348     Uint32 fevent = 0;
   530     _NET_WM_WINDOW_TYPE_NORMAL = XInternAtom(display, "_NET_WM_WINDOW_TYPE_NORMAL", False);
   532     _NET_WM_WINDOW_TYPE_NORMAL = XInternAtom(display, "_NET_WM_WINDOW_TYPE_NORMAL", False);
   531     XChangeProperty(display, w, _NET_WM_WINDOW_TYPE, XA_ATOM, 32,
   533     XChangeProperty(display, w, _NET_WM_WINDOW_TYPE, XA_ATOM, 32,
   532                     PropModeReplace,
   534                     PropModeReplace,
   533                     (unsigned char *)&_NET_WM_WINDOW_TYPE_NORMAL, 1);
   535                     (unsigned char *)&_NET_WM_WINDOW_TYPE_NORMAL, 1);
   534 
   536 
       
   537     _NET_WM_BYPASS_COMPOSITOR = XInternAtom(display, "_NET_WM_BYPASS_COMPOSITOR", False);
       
   538     XChangeProperty(display, w, _NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32,
       
   539                     PropModeReplace,
       
   540                     (unsigned char *)&_NET_WM_BYPASS_COMPOSITOR_HINT_ON, 1);
   535 
   541 
   536     {
   542     {
   537         Atom protocols[] = {
   543         Atom protocols[] = {
   538             data->WM_DELETE_WINDOW, /* Allow window to be deleted by the WM */
   544             data->WM_DELETE_WINDOW, /* Allow window to be deleted by the WM */
   539             data->_NET_WM_PING, /* Respond so WM knows we're alive */
   545             data->_NET_WM_PING, /* Respond so WM knows we're alive */