tabbox: Do not add windows that have modal children

This fixes a porting typo. Previously, the modal was therefore
added twice, once for itself and once for its parent but we actually
do *not* want a window with a modal child at all.


(cherry picked from commit ff052c6d9c)

Co-authored-by: Kai Uwe Broulik <kde@privat.broulik.de>
wilder/Plasma/6.2
Kai Uwe Broulik 1 year ago
parent 14db57fc56
commit da63dc0941
  1. 8
      src/tabbox/tabbox.cpp

@ -191,12 +191,10 @@ Window *TabBoxHandlerImpl::clientToAddToList(Window *client) const
Window *modal = client->findModal();
if (modal == nullptr || modal == client) {
ret = client;
} else if (!clientList().contains(modal)) {
ret = modal;
} else {
if (clientList().contains(modal)) {
ret = modal;
} else {
// nothing
}
// nothing
}
}
return ret;

Loading…
Cancel
Save