keybindings: Send trigger when a key accelerator is deactivated

This is neccessary to support the GlobalShortcuts portal which demands Deactivate events.

https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/47

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3680>
This commit is contained in:
dcz
2024-03-31 14:09:56 +00:00
committed by dcz
parent b0df2d0f7d
commit 11a4d56185
5 changed files with 65 additions and 9 deletions

View File

@ -71,6 +71,8 @@ struct _MetaKeyBinding
MetaKeyCombo combo;
MetaResolvedKeyCombo resolved_combo;
gint flags;
/* The binding should respond to release, and was just pressed */
gboolean release_pending;
MetaKeyHandler *handler;
};