• David Edmundson's avatar
    Fix focus loss on decoration destruction · d87273d8
    David Edmundson authored and Andrey Butirsky's avatar Andrey Butirsky committed
    InputDeviceHandler keeps track of which client has focus, and whether
    the decoration or main window has focus.
    Should the decoration get destroyed whilst the decoration has focus we
    don't update correctly. This can happen when
    "BorderlessMaximizedWindows" is set, or if you use key presses whilst
    above the decoration.
    cleanupDecoration (which is an odd name) is called whenever a decoration
    gains or loses focus. Here we can connect for the decoration destruction
    and force a focus change.
    BUG: 411884
    (cherry picked from commit 566bfbff)