wlr_scene: Don't disable scene nodes at creation time

This commit is contained in:
Alexander Orzechowski 2024-07-04 14:35:52 -04:00
parent a9375d6bac
commit ee24201e26
3 changed files with 0 additions and 7 deletions

View File

@ -60,8 +60,6 @@ struct wlr_scene_tree *wlr_scene_drag_icon_create(
return NULL; return NULL;
} }
wlr_scene_node_set_enabled(&icon->tree->node, drag_icon->surface->mapped);
icon->tree_destroy.notify = drag_icon_handle_tree_destroy; icon->tree_destroy.notify = drag_icon_handle_tree_destroy;
wl_signal_add(&icon->tree->node.events.destroy, &icon->tree_destroy); wl_signal_add(&icon->tree->node.events.destroy, &icon->tree_destroy);
icon->drag_icon_surface_commit.notify = drag_icon_handle_surface_commit; icon->drag_icon_surface_commit.notify = drag_icon_handle_surface_commit;

View File

@ -160,8 +160,5 @@ struct wlr_scene_layer_surface_v1 *wlr_scene_layer_surface_v1_create(
wl_signal_add(&layer_surface->events.destroy, wl_signal_add(&layer_surface->events.destroy,
&scene_layer_surface->layer_surface_destroy); &scene_layer_surface->layer_surface_destroy);
wlr_scene_node_set_enabled(&scene_layer_surface->tree->node,
layer_surface->surface->mapped);
return scene_layer_surface; return scene_layer_surface;
} }

View File

@ -93,8 +93,6 @@ struct wlr_scene_tree *wlr_scene_xdg_surface_create(
wl_signal_add(&xdg_surface->surface->events.commit, wl_signal_add(&xdg_surface->surface->events.commit,
&scene_xdg_surface->xdg_surface_commit); &scene_xdg_surface->xdg_surface_commit);
wlr_scene_node_set_enabled(&scene_xdg_surface->tree->node,
xdg_surface->surface->mapped);
scene_xdg_surface_update_position(scene_xdg_surface); scene_xdg_surface_update_position(scene_xdg_surface);
return scene_xdg_surface->tree; return scene_xdg_surface->tree;