Revert "Use private mapping from provided shm_pool buffer" (#2104)

This reverts commit b486263b27.

It was guided by wrong part of documentation (wl_keyboard::keymap).

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
This commit is contained in:
Tin Švagelj
2024-12-07 20:44:52 +00:00
committed by GitHub
parent 2b7e4b250f
commit 28a39cb26c

View File

@@ -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);