Ensure active window isn't focused when screen is locked
If the screen is locked, but the lockscreen isn't ready for painting, pickFocus() returns the active window. This somehow leads to the meta key getting "stuck" if you lock the screen with Meta+L.
(cherry picked from commit c1e3dc0e)
Co-authored-by: Adam Nydahl loginer@loginer.net