diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-02-21 20:58:17 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 5f0801b6f245cc789ea93b9449dd0c573ef36e66 (patch) | |
tree | 657615d28252b0b3bd01ef240ac6ae49dad15f74 /include | |
parent | Delete old damage tracking code (diff) | |
download | sway-5f0801b6f245cc789ea93b9449dd0c573ef36e66.tar.gz sway-5f0801b6f245cc789ea93b9449dd0c573ef36e66.tar.zst sway-5f0801b6f245cc789ea93b9449dd0c573ef36e66.zip |
container: Don't track outputs
The scene graph abstraction does this for us
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/surface.h | 10 | ||||
-rw-r--r-- | include/sway/tree/container.h | 12 |
2 files changed, 0 insertions, 22 deletions
diff --git a/include/sway/surface.h b/include/sway/surface.h deleted file mode 100644 index 81eb80d5..00000000 --- a/include/sway/surface.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #ifndef _SWAY_SURFACE_H | ||
2 | #define _SWAY_SURFACE_H | ||
3 | #include <wlr/types/wlr_compositor.h> | ||
4 | |||
5 | void surface_enter_output(struct wlr_surface *surface, | ||
6 | struct sway_output *output); | ||
7 | void surface_leave_output(struct wlr_surface *surface, | ||
8 | struct sway_output *output); | ||
9 | |||
10 | #endif | ||
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 4cd4c847..37a6b2b3 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -125,9 +125,6 @@ struct sway_container { | |||
125 | double child_total_width; | 125 | double child_total_width; |
126 | double child_total_height; | 126 | double child_total_height; |
127 | 127 | ||
128 | // Outputs currently being intersected | ||
129 | list_t *outputs; // struct sway_output | ||
130 | |||
131 | // Indicates that the container is a scratchpad container. | 128 | // Indicates that the container is a scratchpad container. |
132 | // Both hidden and visible scratchpad containers have scratchpad=true. | 129 | // Both hidden and visible scratchpad containers have scratchpad=true. |
133 | // Hidden scratchpad containers have a NULL parent. | 130 | // Hidden scratchpad containers have a NULL parent. |
@@ -280,15 +277,6 @@ bool container_is_floating_or_child(struct sway_container *container); | |||
280 | */ | 277 | */ |
281 | bool container_is_fullscreen_or_child(struct sway_container *container); | 278 | bool container_is_fullscreen_or_child(struct sway_container *container); |
282 | 279 | ||
283 | /** | ||
284 | * Return the output which will be used for scale purposes. | ||
285 | * This is the most recently entered output. | ||
286 | * If the container is not on any output, return NULL. | ||
287 | */ | ||
288 | struct sway_output *container_get_effective_output(struct sway_container *con); | ||
289 | |||
290 | void container_discover_outputs(struct sway_container *con); | ||
291 | |||
292 | enum sway_container_layout container_parent_layout(struct sway_container *con); | 280 | enum sway_container_layout container_parent_layout(struct sway_container *con); |
293 | 281 | ||
294 | list_t *container_get_siblings(struct sway_container *container); | 282 | list_t *container_get_siblings(struct sway_container *container); |