-
-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update wayland keymap handling for protocol 7+.
Newer wayland protocol expects us to mmap the keymap file descriptor (and do so with certain mmap flags). The current code tries to handle both normal files and pipes, but neither will work in some cases. This updates the code to use xkbcommon's new_from_fd, which is what the toolkit uses, and mmap's the file. This fixes #5393, which was caused by hanging when trying to read the file as if it was a pipe.
- Loading branch information
Showing
1 changed file
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters