From 95e954da300988f001f555046b42a3b1a3337db0 Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Fri, 23 Jul 2021 00:44:05 +0300 Subject: [PATCH] [tabbox] prevent dangling popups when switching on Wayland If some popups of active window present, there was glitches on switching such as stale popups or the popup happened below window. Dismissing all the popups solves the problem. BUG: 431046 --- src/tabbox/tabbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tabbox/tabbox.cpp b/src/tabbox/tabbox.cpp index d945469237..658d5eae34 100644 --- a/src/tabbox/tabbox.cpp +++ b/src/tabbox/tabbox.cpp @@ -1017,6 +1017,10 @@ void TabBox::navigatingThroughWindows(bool forward, const QKeySequence &shortcut // CDE style raise / lower CDEWalkThroughWindows(forward); } else { + workspace()->forEachAbstractClient([](Toplevel *toplevel) { + if (toplevel->isPopupWindow()) + toplevel->popupDone(); + }); if (areModKeysDepressed(shortcut)) { if (startKDEWalkThroughWindows(mode)) KDEWalkThroughWindows(forward);