mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: mmap keymap buffer with MAP_PRIVATE (#190)
This commit is contained in:
parent
988d5b3957
commit
ae889b47a0
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ static void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint form
|
|||
return;
|
||||
}
|
||||
|
||||
const char* buf = (const char*)mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0);
|
||||
const char* buf = (const char*)mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
|
||||
if (buf == MAP_FAILED) {
|
||||
Debug::log(ERR, "Failed to mmap xkb keymap: {}", errno);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue