Skip to content

Commit

Permalink
Use private mapping from provided shm_pool buffer (#1876)
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian authored Apr 30, 2024
1 parent f3f53fd commit b486263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display-wayland.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,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_SHARED, fd, 0);
*data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
if (*data == MAP_FAILED) {
fprintf(stderr, "mmap failed: %m\n");
close(fd);
Expand Down

0 comments on commit b486263

Please sign in to comment.