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>
This commit is contained in:
+2
-2
@@ -2956,7 +2956,7 @@ keyboard_handle_keymap(void *data, struct wl_keyboard *keyboard,
|
|||||||
return;
|
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) {
|
if (map_str == MAP_FAILED) {
|
||||||
close(fd);
|
close(fd);
|
||||||
return;
|
return;
|
||||||
@@ -5807,7 +5807,7 @@ static void
|
|||||||
display_add_input(struct display *d, uint32_t id, int display_seat_version)
|
display_add_input(struct display *d, uint32_t id, int display_seat_version)
|
||||||
{
|
{
|
||||||
struct input *input;
|
struct input *input;
|
||||||
int seat_version = MIN(display_seat_version, 6);
|
int seat_version = MIN(display_seat_version, 7);
|
||||||
|
|
||||||
input = xzalloc(sizeof *input);
|
input = xzalloc(sizeof *input);
|
||||||
input->display = d;
|
input->display = d;
|
||||||
|
|||||||
Reference in New Issue
Block a user