aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernandez Hernandez <leohdz172@protonmail.com>2021-10-31 17:05:40 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-11 15:07:57 -0600
commitb97d9e1ce102fe0aa2331b480827b523164c7d42 (patch)
tree7e752243b3b022a5c4449734f1eccbdefa04c0bc
parent2b2f72d7c287fe3255dfa8f7db13f81c6a534a57 (diff)
use wlr_scene_node_raise_to_top()
-rw-r--r--dwl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dwl.c b/dwl.c
index 5dd566a..4e90d17 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1067,11 +1067,8 @@ focusclient(Client *c, int lift)
int i;
/* Raise client in stacking order if requested */
- if (c && lift) {
- /* This isn't easy to do via the current API */
- wl_list_remove(&c->scene->state.link);
- wl_list_insert(c->scene->parent->state.children.prev, &c->scene->state.link);
- }
+ if (c && lift)
+ wlr_scene_node_raise_to_top(c->scene);
if (c && client_surface(c) == old)
return;