diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2024-01-18 10:04:26 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 9a579666068d62b9354a39941e1ac8c1f4a58093 (patch) | |
tree | 79d5d36f27b43f1d68969242211a0e01395c6bfc /sway/tree | |
parent | scene_graph: Port seatop_move_tiling indicators (diff) | |
download | sway-9a579666068d62b9354a39941e1ac8c1f4a58093.tar.gz sway-9a579666068d62b9354a39941e1ac8c1f4a58093.tar.zst sway-9a579666068d62b9354a39941e1ac8c1f4a58093.zip |
scene_graph: Port ext_session_v1
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/output.c | 2 | ||||
-rw-r--r-- | sway/tree/root.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index 12a2f969..64ca3d75 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c | |||
@@ -95,6 +95,7 @@ static void destroy_scene_layers(struct sway_output *output) { | |||
95 | 95 | ||
96 | wlr_scene_node_destroy(&output->layers.tiling->node); | 96 | wlr_scene_node_destroy(&output->layers.tiling->node); |
97 | wlr_scene_node_destroy(&output->layers.fullscreen->node); | 97 | wlr_scene_node_destroy(&output->layers.fullscreen->node); |
98 | wlr_scene_node_destroy(&output->layers.session_lock->node); | ||
98 | } | 99 | } |
99 | 100 | ||
100 | struct sway_output *output_create(struct wlr_output *wlr_output) { | 101 | struct sway_output *output_create(struct wlr_output *wlr_output) { |
@@ -104,6 +105,7 @@ struct sway_output *output_create(struct wlr_output *wlr_output) { | |||
104 | bool failed = false; | 105 | bool failed = false; |
105 | output->layers.tiling = alloc_scene_tree(root->staging, &failed); | 106 | output->layers.tiling = alloc_scene_tree(root->staging, &failed); |
106 | output->layers.fullscreen = alloc_scene_tree(root->staging, &failed); | 107 | output->layers.fullscreen = alloc_scene_tree(root->staging, &failed); |
108 | output->layers.session_lock = alloc_scene_tree(root->staging, &failed); | ||
107 | 109 | ||
108 | if (!failed) { | 110 | if (!failed) { |
109 | output->fullscreen_background = wlr_scene_rect_create( | 111 | output->fullscreen_background = wlr_scene_rect_create( |
diff --git a/sway/tree/root.c b/sway/tree/root.c index 38fcdb7c..e4941566 100644 --- a/sway/tree/root.c +++ b/sway/tree/root.c | |||
@@ -50,6 +50,7 @@ struct sway_root *root_create(struct wl_display *wl_display) { | |||
50 | root->layers.fullscreen = alloc_scene_tree(&root_scene->tree, &failed); | 50 | root->layers.fullscreen = alloc_scene_tree(&root_scene->tree, &failed); |
51 | root->layers.fullscreen_global = alloc_scene_tree(&root_scene->tree, &failed); | 51 | root->layers.fullscreen_global = alloc_scene_tree(&root_scene->tree, &failed); |
52 | root->layers.seat = alloc_scene_tree(&root_scene->tree, &failed); | 52 | root->layers.seat = alloc_scene_tree(&root_scene->tree, &failed); |
53 | root->layers.session_lock = alloc_scene_tree(&root_scene->tree, &failed); | ||
53 | 54 | ||
54 | if (failed) { | 55 | if (failed) { |
55 | wlr_scene_node_destroy(&root_scene->tree.node); | 56 | wlr_scene_node_destroy(&root_scene->tree.node); |