Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
chore(new_backend): ignore windows smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
gikari committed Mar 29, 2022
1 parent 4262c39 commit fc925f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
11 changes: 9 additions & 2 deletions src/core/engine/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ Engine::Engine(PlasmaApi::Api &api, const Bismuth::Config &config)
void Engine::addWindow(PlasmaApi::Client client)
{
// Don't manage special windows - docks, panels, etc.
// Also don't tile launchers
if (client.specialWindow() || client.dialog() || client.resourceClass() == QByteArrayLiteral("krunner")) {
if (client.specialWindow() || client.dialog()) {
return;
}

// If the window is initially set to be always on top, it means that it
// definitely does not want to be tiled. This also might be a signal, that
// the window is a launcher: KRunner, ULauncher, etc. This also keeps away
// various application pop-ups
if (client.keepAbove()) {
return;
}

Expand Down
13 changes: 6 additions & 7 deletions src/core/plasma-api/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ class Client : public TopLevel
// */
// Q_PROPERTY(bool fullScreen READ fullScreen WRITE set_fullScreen)
// BOOL_PRIMITIVE_SETGET(fullScreen)
//
// /**
// * Whether the window is set to be above all
// */
// Q_PROPERTY(bool keepAbove READ keepAbove WRITE set_keepAbove)
// BOOL_PRIMITIVE_SETGET(keepAbove)
//

/**
* Whether the window is set to be above all
*/
BI_PROPERTY(bool, keepAbove, setKeepAbove)

// /**
// * Whether the window is set to be below all
// */
Expand Down

0 comments on commit fc925f4

Please sign in to comment.