diff options
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/container.c | 4 | ||||
-rw-r--r-- | sway/tree/layout.c | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 705221d7..bbafe9ec 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -254,7 +254,9 @@ swayc_t *destroy_output(swayc_t *output) { | |||
254 | } | 254 | } |
255 | } | 255 | } |
256 | 256 | ||
257 | wl_list_remove(&output->sway_output->output_destroy.link); | 257 | wl_list_remove(&output->sway_output->frame.link); |
258 | wl_list_remove(&output->sway_output->destroy.link); | ||
259 | wl_list_remove(&output->sway_output->mode.link); | ||
258 | 260 | ||
259 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); | 261 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); |
260 | free_swayc(output); | 262 | free_swayc(output); |
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 3d04a1a7..de9e7b58 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -204,10 +204,13 @@ void arrange_windows(swayc_t *container, double width, double height) { | |||
204 | case C_WORKSPACE: | 204 | case C_WORKSPACE: |
205 | { | 205 | { |
206 | swayc_t *output = swayc_parent_by_type(container, C_OUTPUT); | 206 | swayc_t *output = swayc_parent_by_type(container, C_OUTPUT); |
207 | container->width = output->width; | 207 | struct wlr_box *area = &output->sway_output->usable_area; |
208 | container->height = output->height; | 208 | wlr_log(L_DEBUG, "Usable area for ws: %dx%d@%d,%d", |
209 | container->x = x; | 209 | area->width, area->height, area->x, area->y); |
210 | container->y = y; | 210 | container->width = area->width; |
211 | container->height = area->height; | ||
212 | container->x = x = area->x; | ||
213 | container->y = y = area->y; | ||
211 | wlr_log(L_DEBUG, "Arranging workspace '%s' at %f, %f", | 214 | wlr_log(L_DEBUG, "Arranging workspace '%s' at %f, %f", |
212 | container->name, container->x, container->y); | 215 | container->name, container->x, container->y); |
213 | } | 216 | } |