Properly clear the X11 clipboard when we select in another application.
Pasting from another application is still borked.
This commit is contained in:
parent
9e89ca161d
commit
57b52369b9
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue