backend/x11: correctly update keyboard modifiers
Test plan: under X11 backend, focus rootston, open a terminal, press Shift, focus another window, release Shift, focus rootston, type something. The characters typed should be lowercase, not uppercase.
TODO:
-
Make this optional -
Remove global state
Fixes #227 (closed)