This only happens when the keyboard layout is changed. I use xmodmap to remap and I noticed that once xmodmap is called the remapping works, however as soon as you switch to another window the remapping is lost. I went into layout settings and unchecked the box "Allow different sources for each window". The result: xmodmap settings persist till layout is changed.
Not really a workaround, but might be helpful nonetheless.
This only happens when the keyboard layout is changed. I use xmodmap to remap and I noticed that once xmodmap is called the remapping works, however as soon as you switch to another window the remapping is lost. I went into layout settings and unchecked the box "Allow different sources for each window". The result: xmodmap settings persist till layout is changed.
Not really a workaround, but might be helpful nonetheless.