Skip to content

Avoid creating Unmanaged for reparented window

Vlad Zahorodnii requested to merge work/cherry-pick-2f4005cd into Plasma/6.2

When a mapped window doing reparent, xorg will generate a unmap and map sequence.

In KWin, If a mapped Unmanaged is doing reparent, KWin will receive a unmap and map sequence because KWin won't release the Unmanaged immediately. When the MapNotify comes, its parent is not longer the root window. However, KWin still create an Unmanaged to manage it. As a result, a ghost Unmanaged remains in the list.

(cherry picked from commit 2f4005cd)

Co-authored-by: zeming huang huangzeming@uniontech.com

Merge request reports

Loading