On X11, update keymap on XkbMapNotify
This is required to handle xmodmap. Fixes #3338.
This commit is contained in:
parent
8f6de4ef4b
commit
5a1d3e4656
3 changed files with 19 additions and 1 deletions
|
|
@ -365,7 +365,9 @@ impl<T: 'static> EventLoop<T> {
|
|||
.xconn
|
||||
.select_xkb_events(
|
||||
0x100, // Use the "core keyboard device"
|
||||
xkb::EventType::NEW_KEYBOARD_NOTIFY | xkb::EventType::STATE_NOTIFY,
|
||||
xkb::EventType::NEW_KEYBOARD_NOTIFY
|
||||
| xkb::EventType::MAP_NOTIFY
|
||||
| xkb::EventType::STATE_NOTIFY,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue