Skip to content

xwayland: Allow clipboard updates with either pointer or keyboard focus

David Edmundson requested to merge work/d_ed/xwayland_clipboard_allowing into master

X11 did not have a requirement that apps needed keyboard focus to update a clipboard. Apps could copy things on click. With context menus and grabs there can be no active window at this point.

Kwin tried to retrofit a requirement, which doesn't work in all cases.

Whilst there are security implications of reading a clipboard there are no security issues about pushing a new clipboard. Gnome also allows X11 apps to push to the clipboard at any point.

Edited by David Edmundson

Merge request reports