mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
scene_graph: Port ext_session_v1
This commit is contained in:
parent
0639bde9fb
commit
9a57966606
12 changed files with 280 additions and 192 deletions
|
|
@ -95,6 +95,7 @@ static void destroy_scene_layers(struct sway_output *output) {
|
|||
|
||||
wlr_scene_node_destroy(&output->layers.tiling->node);
|
||||
wlr_scene_node_destroy(&output->layers.fullscreen->node);
|
||||
wlr_scene_node_destroy(&output->layers.session_lock->node);
|
||||
}
|
||||
|
||||
struct sway_output *output_create(struct wlr_output *wlr_output) {
|
||||
|
|
@ -104,6 +105,7 @@ struct sway_output *output_create(struct wlr_output *wlr_output) {
|
|||
bool failed = false;
|
||||
output->layers.tiling = alloc_scene_tree(root->staging, &failed);
|
||||
output->layers.fullscreen = alloc_scene_tree(root->staging, &failed);
|
||||
output->layers.session_lock = alloc_scene_tree(root->staging, &failed);
|
||||
|
||||
if (!failed) {
|
||||
output->fullscreen_background = wlr_scene_rect_create(
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ struct sway_root *root_create(struct wl_display *wl_display) {
|
|||
root->layers.fullscreen = alloc_scene_tree(&root_scene->tree, &failed);
|
||||
root->layers.fullscreen_global = alloc_scene_tree(&root_scene->tree, &failed);
|
||||
root->layers.seat = alloc_scene_tree(&root_scene->tree, &failed);
|
||||
root->layers.session_lock = alloc_scene_tree(&root_scene->tree, &failed);
|
||||
|
||||
if (failed) {
|
||||
wlr_scene_node_destroy(&root_scene->tree.node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue