diff options
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/layout.c b/sway/layout.c index 5b7dc486..6d82921c 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -455,8 +455,8 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { | |||
455 | struct panel_config *config = desktop_shell.panels->items[i]; | 455 | struct panel_config *config = desktop_shell.panels->items[i]; |
456 | if (config->output == output->handle) { | 456 | if (config->output == output->handle) { |
457 | struct wlc_size size = *wlc_surface_get_size(config->surface); | 457 | struct wlc_size size = *wlc_surface_get_size(config->surface); |
458 | sway_log(L_DEBUG, "-> Found panel for this workspace: %ux%u, position: %u", size.w, size.h, desktop_shell.panel_position); | 458 | sway_log(L_DEBUG, "-> Found panel for this workspace: %ux%u, position: %u", size.w, size.h, config->panel_position); |
459 | switch (desktop_shell.panel_position) { | 459 | switch (config->panel_position) { |
460 | case DESKTOP_SHELL_PANEL_POSITION_TOP: | 460 | case DESKTOP_SHELL_PANEL_POSITION_TOP: |
461 | y += size.h; height -= size.h; | 461 | y += size.h; height -= size.h; |
462 | break; | 462 | break; |