summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorSebastian Wick <sebastian@sebastianwick.net>2019-11-01 02:27:55 +0100
committerSebastian Wick <sebastian@sebastianwick.net>2019-11-04 15:10:05 +0100
commitac1b92dfeae8b7e613fcd7486644a392498a639c (patch)
tree72bb2479695625f816895f164f6b732e9c85ed6c /clients
parentda50a2a5329387695690fea3651436fe20752d49 (diff)
downloadweston-ac1b92dfeae8b7e613fcd7486644a392498a639c.tar.gz
clients/window: bump wl_seat version to 7
Since version 7 clients must use MAP_PRIVATE to map the keymap fd. Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/window.c b/clients/window.c
index 1baab32e..1c5a81f1 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -2956,7 +2956,7 @@ keyboard_handle_keymap(void *data, struct wl_keyboard *keyboard,
return;
}
- 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);
return;
@@ -5807,7 +5807,7 @@ static void
display_add_input(struct display *d, uint32_t id, int display_seat_version)
{
struct input *input;
- int seat_version = MIN(display_seat_version, 6);
+ int seat_version = MIN(display_seat_version, 7);
input = xzalloc(sizeof *input);
input->display = d;