Skip to content

waylandtasksmodel: Fix handle parent window changing

Demitrius Belai requested to merge demitriusbelai/plasma-workspace:master into master

Original commit message(s)

  • waylandtasksmodel: don't remove transient window from windows list

Removing window from windows list causes the window to be destroyed. As alternative, use the SkipTaskbar role to hide the window.

Reason for the change

If PlasmaWindow is destroyed, PlasmaWindow::parentWindowChanged is no longer trigged. So it is no longer possible that Window go back do taskbar if it lose their parent.

To avoid this, use the SkipTaskbar to remove window from taskbar.

Also a missing transients.insert(window, leader) was added.

Test plan

There are two C code in comments.

Bugs fixed

BUG: 484647 BUG: 488596

Edited by Demitrius Belai

Merge request reports