Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wayland/display: Fix mmap use #130

Merged
merged 1 commit into from
May 5, 2024
Merged

wayland/display: Fix mmap use #130

merged 1 commit into from
May 5, 2024

Conversation

samueldr
Copy link

@samueldr samueldr commented May 5, 2024

From version 7 onwards, the fd must be mapped with MAP_PRIVATE by the recipient, as MAP_SHARED may fail.


Hi! 👋

I have tracked down an issue wherein on aarch64-linux, rofi wouldn't take any input from niri down to this mmap use.

Without this change, rofi stays in focus, and only using clicks or killing it does anything useful.

Any attempt to type would result in:

May 04 20:59:58 lumpy rofi[8874]: nk_bindings_seat_handle_key: assertion 'self->keymap != NULL' failed

This does not affect a system with the same configuration on x86_64-linux, so when reproducing YMMV.

> From version 7 onwards, the fd must be mapped with MAP_PRIVATE by the recipient, as MAP_SHARED may fail.

 - https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_keyboard

Signed-off-by: Samuel Dionne-Riel <[email protected]>
@lbonn lbonn merged commit b04bedc into lbonn:wayland May 5, 2024
4 checks passed
@lbonn
Copy link
Owner

lbonn commented May 5, 2024

Thanks for tracking this down!

@samueldr samueldr deleted the fix/mmap branch May 5, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants