Skip to content

Fix focus loss on decoration destruction

Andrey Butirsky requested to merge work/maximise_fix_2 into master

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

Edited by Andrey Butirsky

Merge request reports