Bug 1667674 - [Wayland] Support public primary-selection unstable protocol. r=stransky

This is required to support pasting the primary selection into Firefox on compositors only
supporting the public protocol, such as KWin. Getting the selection *from* Firefox is done
via GTK and will be supported from GTK 3.24.23 on.

The public protocol, while practically identical, will replace the gtk-private one eventually.
However, support for the private one will still be needed for a while.

Note: this also updates the auto-generated gtk-primary-selection files.

Differential Revision: https://phabricator.services.mozilla.com/D91594
This commit is contained in:
Robert Mader
2020-10-02 09:13:06 +00:00
parent 132e9d70d1
commit 459e93dd60
10 changed files with 881 additions and 58 deletions

View File

@@ -42,6 +42,8 @@ media/mp4parse-rust/mp4parse.h
security/manager/ssl/StaticHPKPins.h
widget/gtk/wayland/gtk-primary-selection-client-protocol.h
widget/gtk/wayland/gtk-primary-selection-protocol.c
widget/gtk/wayland/primary-selection-unstable-v1-client-protocol.h
widget/gtk/wayland/primary-selection-unstable-v1-protocol.c
# Ignored because these files are used to generate a windows.h STL wrapper,
# and reformatting them can break generating that wrapper.