From 534a7ddf8f630d07a0c1cf8e13ee66f4eb08256e Mon Sep 17 00:00:00 2001 From: xmvziron <103202084+xmvziron@users.noreply.github.com> Date: Thu, 9 Jan 2025 02:22:08 +0100 Subject: [PATCH] wayland: send key-down events for modifier keys Presently, Muffin sends key-up events for modifier keys but no key-down event. This breaks applications that use a modifier key standalone, such as the Shift-click functionality in browsers, games which use modifier keys seperately, and Wine, where modifiers are rendered completely non-functional due to how its input model works. This commit fixes those issues. Closes: linuxmint/wayland#1 --- src/core/keybindings.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index f236c1ef3..304dfcdf6 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2203,6 +2203,10 @@ process_special_modifier_key (MetaDisplay *display, clutter_input_device_get_device_id (event->device), XISyncDevice, event->time); + /* treat modifier keys the same as normal keys on Wayland */ + if (meta_is_wayland_compositor ()) + return FALSE; + return TRUE; } else