diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index e4c27d61..f70bccdc 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -26,13 +26,6 @@ void swayc_descendants_of_type(swayc_t *root, enum swayc_types type, | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | static void update_root_geometry() { | ||
30 | struct wlr_box *box = | ||
31 | wlr_output_layout_get_box(root_container.output_layout, NULL); | ||
32 | root_container.width = box->width; | ||
33 | root_container.height = box->height; | ||
34 | } | ||
35 | |||
36 | static swayc_t *new_swayc(enum swayc_types type) { | 29 | static swayc_t *new_swayc(enum swayc_types type) { |
37 | // next id starts at 1 because 0 is assigned to root_container in layout.c | 30 | // next id starts at 1 because 0 is assigned to root_container in layout.c |
38 | static size_t next_id = 1; | 31 | static size_t next_id = 1; |
@@ -94,7 +87,6 @@ swayc_t *new_output(struct sway_output *sway_output) { | |||
94 | sway_log(L_DEBUG, "Creating default workspace %s", ws_name); | 87 | sway_log(L_DEBUG, "Creating default workspace %s", ws_name); |
95 | new_workspace(output, ws_name); | 88 | new_workspace(output, ws_name); |
96 | free(ws_name); | 89 | free(ws_name); |
97 | update_root_geometry(); | ||
98 | return output; | 90 | return output; |
99 | } | 91 | } |
100 | 92 | ||
@@ -195,7 +187,6 @@ swayc_t *destroy_output(swayc_t *output) { | |||
195 | 187 | ||
196 | sway_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); | 188 | sway_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); |
197 | free_swayc(output); | 189 | free_swayc(output); |
198 | update_root_geometry(); | ||
199 | 190 | ||
200 | return &root_container; | 191 | return &root_container; |
201 | } | 192 | } |