[Xfce-bugs] [Bug 7845] Shortcuts are started when keys are pressed, not when they are released.

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Fri Mar 16 04:26:26 CET 2018


https://bugzilla.xfce.org/show_bug.cgi?id=7845

--- Comment #58 from Andre Miranda <andreldm at xfce.org> ---
Here are the results of my little survey:

Cinnamon:
- Super alone (handled on release) opens menu
- Super+arrows tiles windows
- Super+d shows desktop
I found that muffin uses XGrabKey and cinnamon-settings-daemon uses
XIGrabKeycode
But nothing about special handling for super key, neither XRecord usage
https://github.com/linuxmint/muffin/blob/130d6f00d4fb7ba468d462bf1447e8c3bc6d9dd8/src/core/keybindings.c#L936
https://github.com/linuxmint/cinnamon-settings-daemon/blob/a74a48da2892abc93848d5b26c0c2adf68f7f67d/plugins/common/csd-keygrab.c#L76

Gnome: Similar behavior and code to cinnamon (obviously)

Plasma:
- Super alone (handled on release) opens menu
- Super+arrows tiles windows (not the default, can be set)
- Super+p opens display switcher
No traces of XIGrabKeycode, XGrabKey or XRecord in kwin
I couldn't find out what's their "settings-daemon" or the component responsible
for global hotkeys

Deepin:
- Super alone (handled on release) opens menu
- Super+left/right switches workspaces
- Super+up/down maximizes/restores windows
I'm almost certain it uses XRecord to handle modifiers on release:
https://github.com/linuxdeepin/dde-daemon/blob/50c198f69cf8bbcf1a928d676acb0bf4c952b724/keybinding/shortcuts/xrecord_event_handler.go

Mate: Super alone cannot be assigned to anything
i3: Super ($mod) alone cannot be assigned to anything

Unless XInput2's grab of Super does not prevent other windows to receive events
of Super as modifier, I couldn't find the proper fix :'(
XRecord is too much hack to be introduced in Xfce's code IMHO.
For now, xcape -e 'Super_L=Control_L|Escape' on start up frees Super to be used
as modifier, not an official fix, but a simple workaround.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Xfce-bugs mailing list