I have made a keybinding with xmodmap keysym Alt_R = Pointer_Button1, and enabled it with xmodmap ~/.Xmodmap.
The keybinding works fine. However if I temporarily switch to another tty session and switch back, the keybinding stops working. And I need to enable it again.
What could be causing this? And is it possible to fix this somehow?
I'm using Ubuntu 19.04.