wayland: Add versions to primary selection protocols

Just so we follow convention - those versions are unlikely to ever change.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1452
This commit is contained in:
Robert Mader 2020-09-27 17:14:35 +02:00
parent 1e78d90a37
commit 82fffacbae
3 changed files with 6 additions and 2 deletions

View File

@ -284,7 +284,8 @@ meta_wayland_data_device_primary_legacy_manager_init (MetaWaylandCompositor *com
{
if (wl_global_create (compositor->wayland_display,
&gtk_primary_selection_device_manager_interface,
1, NULL, bind_primary_manager) == NULL)
META_GTK_PRIMARY_SELECTION_VERSION,
NULL, bind_primary_manager) == NULL)
g_error ("Could not create data_device");
}

View File

@ -283,7 +283,8 @@ meta_wayland_data_device_primary_manager_init (MetaWaylandCompositor *compositor
{
if (wl_global_create (compositor->wayland_display,
&zwp_primary_selection_device_manager_v1_interface,
1, NULL, bind_primary_manager) == NULL)
META_ZWP_PRIMARY_SELECTION_V1_VERSION,
NULL, bind_primary_manager) == NULL)
g_error ("Could not create data_device");
}

View File

@ -55,5 +55,7 @@
#define META_GTK_TEXT_INPUT_VERSION 1
#define META_ZWP_TEXT_INPUT_V3_VERSION 1
#define META_WP_VIEWPORTER_VERSION 1
#define META_GTK_PRIMARY_SELECTION_VERSION 1
#define META_ZWP_PRIMARY_SELECTION_V1_VERSION 1
#endif