Blender Git Loki
Git Commits -> Revision e385bdb
Revision e385bdb by Alexander Gavrilov (master) November 16, 2019, 08:56 (GMT) |
Fix a bug in the T34039 hack in case when a modifier key is not mapped. In order to recover from a transient Focus Out - Focus In disruption in the middle of a shortcut, which can be caused by certain window managers, Blender has code that checks which modifier keys are pressed after Focus In and restores the modifier state based on that. If one of the Ctrl, Shift, Alt, Super keys is not mapped anywhere in the active keyboard layout, XKeysymToKeycode returns the invalid zero keycode, and reading the key state produces garbage, which can cause an invalid modifier state. Check the return value to avoid this. |
Commit Details:
Full Hash: e385bdb228acd3a4c64a886e6fee39f5fcb3cebf
Parent Commit: e5b788b
Lines Changed: +1, -1
1 Modified Path:
/intern/ghost/intern/GHOST_SystemX11.cpp (+1, -1) (Diff)