[gtk: 2/3] gdk/wayland: add support for wl_seat version 7
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 2/3] gdk/wayland: add support for wl_seat version 7
- Date: Wed, 18 Aug 2021 21:10:33 +0000 (UTC)
commit ad0c1d4dbe8413d9094a92a3d346604ccc26c7a1
Author: Simon Ser <contact emersion fr>
Date: Wed Aug 11 11:01:55 2021 +0200
gdk/wayland: add support for wl_seat version 7
Version 7 requires wl_keyboard keymaps to be mapped with
MAP_PRIVATE, so that the compositor can share the same keymap
file between multiple clients.
gdk/wayland/gdkdisplay-wayland.c | 2 +-
gdk/wayland/gdkkeys-wayland.c | 2 +-
meson.build | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index f075a71c59..1860a73f78 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -240,7 +240,7 @@ _gdk_wayland_display_add_seat (GdkWaylandDisplay *display_wayland,
{
struct wl_seat *seat;
- display_wayland->seat_version = MIN (version, 6);
+ display_wayland->seat_version = MIN (version, 7);
seat = wl_registry_bind (display_wayland->wl_registry,
id, &wl_seat_interface,
display_wayland->seat_version);
diff --git a/gdk/wayland/gdkkeys-wayland.c b/gdk/wayland/gdkkeys-wayland.c
index 38f346c75d..35ac9e8262 100644
--- a/gdk/wayland/gdkkeys-wayland.c
+++ b/gdk/wayland/gdkkeys-wayland.c
@@ -542,7 +542,7 @@ _gdk_wayland_keymap_update_from_fd (GdkKeymap *keymap,
context = xkb_context_new (0);
- map_str = mmap (NULL, size, PROT_READ, MAP_SHARED, fd, 0);
+ map_str = mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
if (map_str == MAP_FAILED)
{
close(fd);
diff --git a/meson.build b/meson.build
index f2aef2f646..484ce536c3 100644
--- a/meson.build
+++ b/meson.build
@@ -17,7 +17,7 @@ cairo_req = '>= 1.14.0'
gdk_pixbuf_req = '>= 2.30.0'
introspection_req = '>= 1.39.0'
wayland_proto_req = '>= 1.21'
-wayland_req = '>= 1.14.91'
+wayland_req = '>= 1.16.91'
graphene_req = '>= 1.9.1'
epoxy_req = '>= 1.4'
cloudproviders_req = '>= 0.3.1'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]