summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2024-01-28 09:01:09 +0100
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-02-05 15:59:46 -0600
commit45e3694fc8e91642cf970bd1586bd1a16dbc8a31 (patch)
treeb2375e6619def4dd180d189dc1b942be5a7f6bb4
parent5c936efc427f2d326dab3f8d22cb34159b8292b2 (diff)
remove useless wlr_scene_node_reparent() calls
These don't do anything because wlr_scene_node_reparent() is immediately called again by setfloating() through setmon(). They are also a source of confusion because if you change the wlr_scene_node_reparent() call in applyrules() it takes a while to understand why it doesn't work.
-rw-r--r--dwl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index ae8df11..f407477 100644
--- a/dwl.c
+++ b/dwl.c
@@ -453,7 +453,6 @@ applyrules(Client *c)
}
}
}
- wlr_scene_node_reparent(&c->scene->node, layers[c->isfloating ? LyrFloat : LyrTile]);
setmon(c, mon, newtags);
}
@@ -1546,7 +1545,6 @@ mapnotify(struct wl_listener *listener, void *data)
/* TODO: https://github.com/djpohly/dwl/pull/334#issuecomment-1330166324 */
if (c->type == XDGShell && (p = client_get_parent(c))) {
c->isfloating = 1;
- wlr_scene_node_reparent(&c->scene->node, layers[LyrFloat]);
setmon(c, p->mon, p->tags);
} else {
applyrules(c);