From ee24201e26e26f6102642ecfef241b85976e9238 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 4 Jul 2024 14:35:52 -0400 Subject: [PATCH] wlr_scene: Don't disable scene nodes at creation time --- types/scene/drag_icon.c | 2 -- types/scene/layer_shell_v1.c | 3 --- types/scene/xdg_shell.c | 2 -- 3 files changed, 7 deletions(-) diff --git a/types/scene/drag_icon.c b/types/scene/drag_icon.c index c7afd5c8..84b202c3 100644 --- a/types/scene/drag_icon.c +++ b/types/scene/drag_icon.c @@ -60,8 +60,6 @@ struct wlr_scene_tree *wlr_scene_drag_icon_create( return NULL; } - wlr_scene_node_set_enabled(&icon->tree->node, drag_icon->surface->mapped); - icon->tree_destroy.notify = drag_icon_handle_tree_destroy; wl_signal_add(&icon->tree->node.events.destroy, &icon->tree_destroy); icon->drag_icon_surface_commit.notify = drag_icon_handle_surface_commit; diff --git a/types/scene/layer_shell_v1.c b/types/scene/layer_shell_v1.c index 86e8a349..4ae736dd 100644 --- a/types/scene/layer_shell_v1.c +++ b/types/scene/layer_shell_v1.c @@ -160,8 +160,5 @@ struct wlr_scene_layer_surface_v1 *wlr_scene_layer_surface_v1_create( wl_signal_add(&layer_surface->events.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; } diff --git a/types/scene/xdg_shell.c b/types/scene/xdg_shell.c index a1592782..ed792633 100644 --- a/types/scene/xdg_shell.c +++ b/types/scene/xdg_shell.c @@ -93,8 +93,6 @@ struct wlr_scene_tree *wlr_scene_xdg_surface_create( wl_signal_add(&xdg_surface->surface->events.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); return scene_xdg_surface->tree;