src/video/x11/SDL_x11events.c
changeset 9652 b5a26bd8b0e7
parent 9639 044cafe15108
child 9666 7099e2df7b29
equal deleted inserted replaced
9651:565009735397 9652:b5a26bd8b0e7
  1217                 videodata->selection_waiting = SDL_FALSE;
  1217                 videodata->selection_waiting = SDL_FALSE;
  1218             }
  1218             }
  1219         }
  1219         }
  1220         break;
  1220         break;
  1221 
  1221 
       
  1222     case SelectionClear: {
       
  1223             Atom XA_CLIPBOARD = X11_XInternAtom(display, "CLIPBOARD", 0);
       
  1224 
       
  1225             if (xevent.xselectionclear.selection == XA_PRIMARY ||
       
  1226                 (XA_CLIPBOARD != None && xevent.xselectionclear.selection == XA_CLIPBOARD)) {
       
  1227                 SDL_SendClipboardUpdate();
       
  1228             }
       
  1229         }
       
  1230         break;
       
  1231 
  1222     default:{
  1232     default:{
  1223 #ifdef DEBUG_XEVENTS
  1233 #ifdef DEBUG_XEVENTS
  1224             printf("window %p: Unhandled event %d\n", data, xevent.type);
  1234             printf("window %p: Unhandled event %d\n", data, xevent.type);
  1225 #endif
  1235 #endif
  1226         }
  1236         }