Skip to content

Fix #393

Simon Ser requested to merge github/fork/Ongy/xkb_fix into master

Created by: Ongy

As mentioned in https://github.com/swaywm/wlroots/issues/393 keybinds did't trigger / were checked with "odd" keys and modifiers.

This commit sends the keycode through two paths, one to get the keycode and modifiers after xkb handles them, a secondary path to get a "raw" keysym without modifiers and then add the modifiers rootston knows about.

This will result in the [Alt]+[Shift]+2 combination I mention earlier going through the keybind detection twice.

  1. [Alt]+[at]
  2. [Alt]+[Shift]+2

When either combination is found, the appropriate keybind is executed. The xkb handled version will be prefered over the "raw" version.

Edit: oh right, test-plan Bind something to [Alt]+[Shift]+2 and check whether the keybind is found.

Merge request reports