From ae889b47a06af7577fabe410fce13ca71dc4212e Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:12:43 +0100 Subject: [PATCH] core: mmap keymap buffer with MAP_PRIVATE (#190) --- src/core/hyprlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index c793489..cda4948 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -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;