Properly clear the X11 clipboard when we select in another application.

Pasting from another application is still borked.
This commit is contained in:
Mark de Wever 2008-04-27 11:33:15 +00:00
parent 9e89ca161d
commit 57b52369b9

View file

@ -240,8 +240,11 @@ void handle_system_event(const SDL_Event& event)
if (xev.type == SelectionClear) {
UseX x11;
if (xev.xselectionclear.selection == x11->XA_CLIPBOARD())
if (xev.xselectionclear.selection == x11->XA_CLIPBOARD()
|| xev.xselectionclear.selection == XA_PRIMARY) {
clipboard_string = ""; //We no longer own the clipboard, don't try in-process C&P
}
}
}