src/video/x11/SDL_x11window.c
changeset 7001 ccc0d3207639
parent 6970 e0db39f7afb0
child 7007 2381f4d531d1
     1.1 --- a/src/video/x11/SDL_x11window.c	Wed Mar 13 09:14:45 2013 -0700
     1.2 +++ b/src/video/x11/SDL_x11window.c	Wed Mar 13 21:41:43 2013 -0700
     1.3 @@ -344,6 +344,7 @@
     1.4      Atom _NET_WM_WINDOW_TYPE;
     1.5      Atom _NET_WM_WINDOW_TYPE_NORMAL;
     1.6      Atom _NET_WM_PID;
     1.7 +    Atom XdndAware, xdnd_version = 5;
     1.8      Uint32 fevent = 0;
     1.9  
    1.10  #if SDL_VIDEO_OPENGL_GLX || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
    1.11 @@ -567,6 +568,11 @@
    1.12                   PropertyChangeMask | StructureNotifyMask |
    1.13                   KeymapStateMask | fevent));
    1.14  
    1.15 +    XdndAware = XInternAtom(display, "XdndAware", False);
    1.16 +    XChangeProperty(display, w, XdndAware, XA_ATOM, 32,
    1.17 +                 PropModeReplace,
    1.18 +                 (unsigned char*)&xdnd_version, 1); 
    1.19 +
    1.20      XFlush(display);
    1.21  
    1.22      return 0;