CristianHenzel / ClipIt

ClipIt clipboard manager for GTK+
https://github.com/CristianHenzel/ClipIt
GNU General Public License v3.0
648 stars 84 forks source link

Wayland Support #59

Open jdoss opened 7 years ago

jdoss commented 7 years ago

This is a new issue that is related to https://github.com/CristianHenzel/ClipIt/issues/57 and https://bugzilla.redhat.com/show_bug.cgi?id=1400811

I opened a bug with GNOME (https://bugzilla.gnome.org/show_bug.cgi?id=775905) about clipit no longer being able to capture the hotkey to bring up the dialog box when focused on a GTK3 application and and they gave the following explanation:

This is the intended behavior; it's by design that arbitrary clients cannot eaves drop on keys from other clients. The reason why it happens to work sometimes is that GTK2 clients still use X11, meaning the eaves dropping still works when interacting with X11 clients via Xwayland. When focusing a GTK3 client, it connects via Wayland, and as a result, Xwayland will not be able to broadcast input to all clients wanting it any more, since it wont see the input events at all. In Wayland, the clipboard manager has to be part of the compositor.

Sounds like clipit will need some work to get full support in Wayland.

1ace commented 5 years ago

Just pointing out that there's a wayland protocol for this here: https://github.com/swaywm/wlr-protocols/pull/25 A CLI implementation is available here: https://github.com/bugaevc/wl-clipboard

Hopefully it shouldn't be too hard to use this in ClipIt :)