Keyboard not working in lightdm after inactivity and lock until I switch user

Could be related to this:

Just like firefox, after some inactivity I cannot the keyboard on lightDM.
Only after switching user does the keyboard work.
Mouse input did work as far as I can remember.