[client] x11: ignore clipboard select events from ourself

This commit is contained in:
Geoffrey McRae 2019-02-24 12:16:32 +11:00
parent dd38f3ce13
commit b368873f4d

View file

@ -217,7 +217,10 @@ static void x11_cb_wmevent(SDL_SysWMmsg * msg)
}
// if someone selected data
if (e.type == this->eventBase + XFixesSelectionNotify && (
if (
e.type == this->eventBase + XFixesSelectionNotify &&
((XFixesSelectionNotifyEvent *)&e)->owner != this->window &&
(
((XFixesSelectionNotifyEvent *)&e)->selection == XA_PRIMARY ||
((XFixesSelectionNotifyEvent *)&e)->selection == this->aSelection)
)