Commit 8010e076 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Revert "Move keep-above clients to the Normal layer when showing desktop"

This reverts commit 1e2a0028.

Unfortunately, we can't move clients from the above layer to the normal
layer because some of those clients have to be visible when showing
desktop, one such client for example is krunner.

CCBUG: 406101
parent af862a9c
......@@ -374,7 +374,7 @@ Layer AbstractClient::belongsToLayer() const
if (isActiveFullScreen())
return ActiveLayer;
if (keepAbove())
return workspace()->showingDesktop() ? NormalLayer : AboveLayer;
return AboveLayer;
return NormalLayer;
......@@ -1276,9 +1276,7 @@ void Workspace::setShowingDesktop(bool showing)
for (int i = stacking_order.count() - 1; i > -1; --i) {
AbstractClient *c = qobject_cast<AbstractClient*>(;
if (c && c->isOnCurrentDesktop()) {
// When showing desktop we'd like to raise docks above desktop
// windows and move keep-above clients to the normal layer.
if (c->isDock() || c->keepAbove()) {
if (c->isDock()) {
} else if (c->isDesktop() && c->isShown(true)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment