mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
keyboard: add window rule to send release-events (#2377)
...of modifiers which are part of keybinds. This supports clients (for
example blender) that want to see modifier-release-events even if they are
part of a keybinds.
Most clients (including those using Qt and GTK) are setup to not see these
modifier release events and actually misbehave if they do. For example
Firefox shows the menu bar if alt is pressed and then released, whereas if
only pressed (because the release is absorbed) nothing happens. So, if
Firefox saw bound modifier-release-events it would show the menu bar every
time the window-switcher is used with alt-tab.
<windowRules>
<windowRule identifier="blender" wantAbsorbedModifierReleaseEvents="yes"/>
</windowRules>
Issue #1507
This commit is contained in:
parent
665b39259a
commit
2f8afb2376
5 changed files with 48 additions and 3 deletions
|
|
@ -1055,6 +1055,18 @@ situation.
|
|||
can be caused by *<margin>* settings or exclusive layer-shell clients
|
||||
such as panels.
|
||||
|
||||
*<windowRules><windowRule wantAbsorbedModifierReleaseEvents="">* [yes|no|default]
|
||||
*wantAbsorbedModifierReleaseEvents* allows clients to receive modifier
|
||||
release events even if they are part of keybinds. Most clients should
|
||||
not receive these, but some (for example blender) need it in some
|
||||
situations.
|
||||
|
||||
```
|
||||
<windowRules>
|
||||
<windowRule identifier="blender" wantAbsorbedModifierReleaseEvents="yes"/>
|
||||
</windowRules>
|
||||
```
|
||||
|
||||
## MENU
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue