From 28a39cb26c190e94ebfbb02ce9f15c85043943b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20=C5=A0vagelj?= Date: Sat, 7 Dec 2024 20:44:52 +0000 Subject: [PATCH] Revert "Use private mapping from provided shm_pool buffer" (#2104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b486263b27c6c13a14a89d0940c74b19a7a63940. It was guided by wrong part of documentation (wl_keyboard::keymap). Signed-off-by: Tin Å vagelj --- src/display-wayland.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display-wayland.cc b/src/display-wayland.cc index faa58c5ef..e51ca08a2 100644 --- a/src/display-wayland.cc +++ b/src/display-wayland.cc @@ -1055,7 +1055,7 @@ static struct wl_shm_pool *make_shm_pool(struct wl_shm *shm, int size, return NULL; } - *data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); + *data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); if (*data == MAP_FAILED) { fprintf(stderr, "mmap failed: %m\n"); close(fd);