mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
wlr_scene: Don't disable scene nodes at creation time
This commit is contained in:
parent
a9375d6bac
commit
ee24201e26
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user