From 4262c39137d40ab69adfe0e73ed58660e229bf5b Mon Sep 17 00:00:00 2001 From: Mikhail Zolotukhin Date: Tue, 29 Mar 2022 19:35:34 +0300 Subject: [PATCH] chore(new_backend): ignore dialog windows --- src/core/engine/engine.cpp | 2 +- src/core/plasma-api/toplevel.hpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/engine/engine.cpp b/src/core/engine/engine.cpp index 23fbb024..b3cefbf9 100644 --- a/src/core/engine/engine.cpp +++ b/src/core/engine/engine.cpp @@ -21,7 +21,7 @@ void Engine::addWindow(PlasmaApi::Client client) { // Don't manage special windows - docks, panels, etc. // Also don't tile launchers - if (client.specialWindow() || client.resourceClass() == QByteArrayLiteral("krunner")) { + if (client.specialWindow() || client.dialog() || client.resourceClass() == QByteArrayLiteral("krunner")) { return; } diff --git a/src/core/plasma-api/toplevel.hpp b/src/core/plasma-api/toplevel.hpp index 4152a5ed..b40aa9c2 100644 --- a/src/core/plasma-api/toplevel.hpp +++ b/src/core/plasma-api/toplevel.hpp @@ -25,9 +25,8 @@ public: /** * Whether the window is a dialog window. */ - // Q_PROPERTY(bool dialog READ dialog) - // BOOL_PRIMITIVE_GET(dialog) - // + BI_READONLY_PROPERTY(bool, dialog) + // /** // * Frame geometry // */