summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-29 15:25:13 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-29 16:47:17 -0500
commit9588b46b5c47a9b4990340ba54a3b4dc075ba55b (patch)
treed9d90b521c9c40c0f4ccf255e1838376b5c27eec
parent2f7834b130dbd930b06ae4d8ef802bd115b011d1 (diff)
only raise the client's node in monocle()
Fixes: https://github.com/djpohly/dwl/issues/326
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index a80de05..8c7644e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1495,7 +1495,8 @@ monocle(Monitor *m)
continue;
resize(c, m->w, 0);
}
- focusclient(focustop(m), 1);
+ if ((c = focustop(m)))
+ wlr_scene_node_raise_to_top(c->scene);
}
void