diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2024-01-18 10:00:45 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 1eb16d136774c8fb3c9085df45156264f0db8814 (patch) | |
tree | 9c348ab37edae50b76a388d7e8d8dcd011cea33b /include/sway/output.h | |
parent | view: init function should return a success bool (diff) | |
download | sway-1eb16d136774c8fb3c9085df45156264f0db8814.tar.gz sway-1eb16d136774c8fb3c9085df45156264f0db8814.tar.zst sway-1eb16d136774c8fb3c9085df45156264f0db8814.zip |
scene_graph: Maintain `wlr_scene_node`s for the sway tree.
Diffstat (limited to 'include/sway/output.h')
-rw-r--r-- | include/sway/output.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index 96bd10db..691ac8dd 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <wayland-server-core.h> | 5 | #include <wayland-server-core.h> |
6 | #include <wlr/types/wlr_damage_ring.h> | 6 | #include <wlr/types/wlr_damage_ring.h> |
7 | #include <wlr/types/wlr_output.h> | 7 | #include <wlr/types/wlr_output.h> |
8 | #include <wlr/types/wlr_scene.h> | ||
8 | #include "config.h" | 9 | #include "config.h" |
9 | #include "sway/tree/node.h" | 10 | #include "sway/tree/node.h" |
10 | #include "sway/tree/view.h" | 11 | #include "sway/tree/view.h" |
@@ -19,7 +20,21 @@ struct sway_output_state { | |||
19 | 20 | ||
20 | struct sway_output { | 21 | struct sway_output { |
21 | struct sway_node node; | 22 | struct sway_node node; |
23 | |||
24 | struct { | ||
25 | struct wlr_scene_tree *tiling; | ||
26 | struct wlr_scene_tree *fullscreen; | ||
27 | } layers; | ||
28 | |||
29 | // when a container is fullscreen, in case the fullscreen surface is | ||
30 | // translucent (can see behind) we must make sure that the background is a | ||
31 | // solid color in order to conform to the wayland protocol. This rect | ||
32 | // ensures that when looking through a surface, all that will be seen | ||
33 | // is black. | ||
34 | struct wlr_scene_rect *fullscreen_background; | ||
35 | |||
22 | struct wlr_output *wlr_output; | 36 | struct wlr_output *wlr_output; |
37 | struct wlr_scene_output *scene_output; | ||
23 | struct sway_server *server; | 38 | struct sway_server *server; |
24 | struct wl_list link; | 39 | struct wl_list link; |
25 | 40 | ||