You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Xorg, Zed does not update keyboard mapping when Xorg updates the keyboard mapping (MappingNotifiy event will be sent).
Example .Xmodmap:
keycode 21 = 0x3C 0x3E
Steps to trigger the problem:
Open Zed with normal keyboard mapping
Apply a modmap using xmodmap .Xmodmap
Zed will still use the old keyboard mapping
Restarting Zed will make it so that it uses the new keyboard mapping
Actual Behavior:
Uses old keyboard mapping
Expected Behavior:
To use new keyboard mapping
My workflow sometimes requires changing between keyboards of which I have slightly different keyboard layouts customized by xmodmap.
xmodmap manual pages state that a MappingNotify event will be sent to applications so that they can change they mappings, so I'm assuming that Zed does not listen to this event :)
Docs state that The X server reports MappingNotify events to all clients. There is no mechanism to express disinterest in this event. so I assume that something in the stack is filtering the event.
notpeter
changed the title
Zed doesn't update keyboard mapping when xorg triggers a MappingNotify
Support X11 MappingNotify events generated by user xmodmap changes
Mar 25, 2025
Summary
When using Xorg, Zed does not update keyboard mapping when Xorg updates the keyboard mapping (MappingNotifiy event will be sent).
Example .Xmodmap:
Steps to trigger the problem:
xmodmap .Xmodmap
Actual Behavior:
Uses old keyboard mapping
Expected Behavior:
To use new keyboard mapping
My workflow sometimes requires changing between keyboards of which I have slightly different keyboard layouts customized by
xmodmap
.xmodmap
manual pages state that aMappingNotify
event will be sent to applications so that they can change they mappings, so I'm assuming that Zed does not listen to this event :)Will try to open a PR for this :)
Zed Version and System Specs
Zed: v0.178.5 (Zed)
OS: Linux X11 ubuntu 24.04
Memory: 31 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (RPL-P) || Intel open-source Mesa driver || Mesa 24.2.8-1ubuntu1~24.04.1
The text was updated successfully, but these errors were encountered: