Skip to content

tabbox: Properly filter out closed windows in the stack

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

When TabBoxHandler::createModel() gets called, it must reset lastRaisedClient and lastRaisedClientSucc if they are closed windows. But the createModel() function currently doesn't do it, which can eventually lead to accessing dangling pointers in TabBoxHandlerPrivate::updateHighlightWindows().

Besides that, there are a couple more cases where closed windows need to be filtered out when processing the stack.

(cherry picked from commit ff2b424e)

Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org

Merge request reports

Loading