mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-10-05 12:37:47 +03:00
chore(new_backend): don't manage special windows
This commit is contained in:
parent
1771577385
commit
877cf0c138
@ -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();
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user