opt: make sure the node init to null

This commit is contained in:
DreamMaoMao 2026-06-18 11:52:16 +08:00
parent 0756eede9c
commit 55be0a989e
6 changed files with 78 additions and 56 deletions

View file

@ -98,7 +98,8 @@ void client_pending_force_kill(Client *c) {
}
void client_add_jump_label_node(Client *c) {
c->jump_label_node = mango_jump_label_node_create(c->scene, config.jumplabeldata);
c->jump_label_node =
mango_jump_label_node_create(c->scene, config.jumplabeldata);
wlr_scene_node_lower_to_bottom(&c->jump_label_node->scene_buffer->node);
wlr_scene_node_set_enabled(&c->jump_label_node->scene_buffer->node, false);
}