src/video/x11/SDL_x11events.c
changeset 10072 d2a1cd694861
parent 10045 e1f07cbb3c86
child 10102 11b490897d27
equal deleted inserted replaced
10071:f7e18e4f7c1d 10072:d2a1cd694861
   833         }
   833         }
   834         break;
   834         break;
   835 
   835 
   836         /* Have we been resized or moved? */
   836         /* Have we been resized or moved? */
   837     case ConfigureNotify:{
   837     case ConfigureNotify:{
       
   838             long border_left = 0;
       
   839             long border_top = 0;
   838 #ifdef DEBUG_XEVENTS
   840 #ifdef DEBUG_XEVENTS
   839             printf("window %p: ConfigureNotify! (position: %d,%d, size: %dx%d)\n", data,
   841             printf("window %p: ConfigureNotify! (position: %d,%d, size: %dx%d)\n", data,
   840                    xevent.xconfigure.x, xevent.xconfigure.y,
   842                    xevent.xconfigure.x, xevent.xconfigure.y,
   841                    xevent.xconfigure.width, xevent.xconfigure.height);
   843                    xevent.xconfigure.width, xevent.xconfigure.height);
   842 #endif
   844 #endif
   843             long border_left = 0;
       
   844             long border_top = 0;
       
   845             if (data->xwindow) {
   845             if (data->xwindow) {
   846                 Atom _net_frame_extents = X11_XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
   846                 Atom _net_frame_extents = X11_XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
   847                 Atom type;
   847                 Atom type;
   848                 int format;
   848                 int format;
   849                 unsigned long nitems, bytes_after;
   849                 unsigned long nitems, bytes_after;
  1227             X11_XSync(display, False);
  1227             X11_XSync(display, False);
  1228         }
  1228         }
  1229         break;
  1229         break;
  1230 
  1230 
  1231     case SelectionNotify: {
  1231     case SelectionNotify: {
       
  1232             Atom target = xevent.xselection.target;
  1232 #ifdef DEBUG_XEVENTS
  1233 #ifdef DEBUG_XEVENTS
  1233             printf("window %p: SelectionNotify (requestor = %ld, target = %ld)\n", data,
  1234             printf("window %p: SelectionNotify (requestor = %ld, target = %ld)\n", data,
  1234                 xevent.xselection.requestor, xevent.xselection.target);
  1235                 xevent.xselection.requestor, xevent.xselection.target);
  1235 #endif
  1236 #endif
  1236             Atom target = xevent.xselection.target;
       
  1237             if (target == data->xdnd_req) {
  1237             if (target == data->xdnd_req) {
  1238                 /* read data */
  1238                 /* read data */
  1239                 SDL_x11Prop p;
  1239                 SDL_x11Prop p;
  1240                 X11_ReadProperty(&p, display, data->xwindow, videodata->PRIMARY);
  1240                 X11_ReadProperty(&p, display, data->xwindow, videodata->PRIMARY);
  1241 
  1241