From 63a54b40db0f2f902eb736d95bac9798c742ea5f Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 22 Oct 2021 20:03:48 +0300 Subject: [PATCH] unblock Meta event properly for all launchers --- app/view/view.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/view/view.cpp b/app/view/view.cpp index 0ecbb6ca0..0d1a0933f 100644 --- a/app/view/view.cpp +++ b/app/view/view.cpp @@ -106,6 +106,7 @@ View::View(Plasma::Corona *corona, QScreen *targetScreen, bool byPassWM) connect(&m_releaseGrabTimer, &QTimer::timeout, this, &View::releaseGrab); connect(m_contextMenu, &ViewPart::ContextMenu::menuChanged, this, &View::updateTransientWindowsTracking); + connect(m_interface, &ViewPart::ContainmentInterface::hasExpandedAppletChanged, this, &View::updateTransientWindowsTracking); connect(this, &View::containmentChanged , this, [ &, byPassWM]() { @@ -708,6 +709,10 @@ void View::removeTransientWindow(const bool &visible) disconnect(window, &QWindow::visibleChanged, this, &View::removeTransientWindow); m_transientWindows.removeAll(window); + if (m_visibility->hasBlockHidingEvent(Latte::GlobalShortcuts::SHORTCUTBLOCKHIDINGTYPE)) { + m_visibility->removeBlockHidingEvent(Latte::GlobalShortcuts::SHORTCUTBLOCKHIDINGTYPE); + } + updateTransientWindowsTracking(); } } @@ -715,11 +720,9 @@ void View::removeTransientWindow(const bool &visible) void View::updateTransientWindowsTracking() { for(QWindow *window: qApp->topLevelWindows()) { - if (window->transientParent() == this){ - if (window->isVisible()) { - addTransientWindow(window); - break; - } + if (window->transientParent() == this && window->isVisible()){ + addTransientWindow(window); + break; } } }