mirror of
https://github.com/encounter/SDL.git
synced 2025-05-21 14:51:27 +00:00
wayland: Use MAP_PRIVATE when mapping the keyboard keymap file descriptor
Per the Wayland spec, this must be mapped with MAP_PRIVATE in version 7 of the protocol and higher.
This commit is contained in:
parent
5129a07707
commit
e89389ba0e
@ -922,7 +922,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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user