chore(new_backend): don't manage special windows

This commit is contained in:
Mikhail Zolotukhin 2022-03-29 15:37:19 +03:00 committed by Genda
parent 1771577385
commit 877cf0c138
2 changed files with 12 additions and 8 deletions

View File

@ -19,6 +19,11 @@ Engine::Engine(PlasmaApi::Api &api, const Bismuth::Config &config)
void Engine::addWindow(PlasmaApi::Client client)
{
// Don't manage special windows - docks, panels, etc.
if (client.specialWindow()) {
return;
}
auto &newWindow = m_windows.add(client);
auto surfaces = newWindow.surfaces();

View File

@ -83,14 +83,13 @@ public:
// */
// Q_PROPERTY(bool resizable READ resizable)
// BOOL_PRIMITIVE_GET(resizable)
//
// /**
// * Whether the window is any of special windows types (desktop, dock, splash, ...),
// * i.e. window types that usually don't have a window frame and the user does not use window
// * management (moving, raising,...) on them.
// */
// Q_PROPERTY(bool specialWindow READ specialWindow)
// BOOL_PRIMITIVE_GET(specialWindow)
/**
* Whether the window is any of special windows types (desktop, dock, splash, ...),
* i.e. window types that usually don't have a window frame and the user does not use window
* management (moving, raising,...) on them.
*/
BI_READONLY_PROPERTY(bool, specialWindow)
/**
* The desktop this window is on. If the window is on all desktops the property has value -1.