-
Notifications
You must be signed in to change notification settings - Fork 227
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
WaylandBackend: Fix hotkeys failing to bind on Wayland desktops #1666
Conversation
Per Wayland protocol specsheet regarding keymapping: "From version 7 onwards, the fd must be mapped with MAP_PRIVATE by the recipient, as MAP_SHARED may fail." This matches up exactly with what we're seeing with this error: [gamescope] [Error] xdg_backend: Failed to map keymap fd. Changing MAP_SHARED to MAP_PRIVATE per the spec addresses this error. Fixes: ValveSoftware#1658 (hopefully) fixes: ValveSoftware#1637
Seems to work. |
Works as expected, resolving the Super + hotkey issue #1658. Can't confirm the Super-less hotkey. |
|
I'm new to Linux. How do I do this? |
simple you need to install new version of gamescope. check if your distro software center have new gamescope version and install/update it |
It's not in any release version yet. It will be in 3.16.2. |
Alternatively, at least in kde plasma, you can set a keyboard shortcut to make kwin toggle fullscreen on any current window. It's more of a borderless fullscreen window than actual fullscreen though. |
Per Wayland protocol specsheet regarding keymapping: "From version 7 onwards, the fd must be mapped with MAP_PRIVATE by the recipient, as MAP_SHARED may fail."
https://wayland.app/protocols/wayland#wl_keyboard:event:keymap
This matches up exactly with what we're seeing with this error:
[gamescope] [Error] xdg_backend: Failed to map keymap fd.
Changing MAP_SHARED to MAP_PRIVATE per the spec addresses this error.
Fixes: #1658
(hopefully) fixes: #1637