summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 0328d361..527579d9 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -458,7 +458,7 @@ void update_geometry(swayc_t *container) {
458 458
459 // use parent size if window is in a stacked/tabbed layout 459 // use parent size if window is in a stacked/tabbed layout
460 swayc_t *parent = container->parent; 460 swayc_t *parent = container->parent;
461 if (parent->layout == L_STACKED || parent->layout == L_TABBED) { 461 if (swayc_is_tabbed_stacked(container)) {
462 width = parent->width; 462 width = parent->width;
463 height = parent->height; 463 height = parent->height;
464 } 464 }
@@ -833,6 +833,8 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
833 swayc_t *view = container->floating->items[i]; 833 swayc_t *view = container->floating->items[i];
834 if (view->type == C_VIEW) { 834 if (view->type == C_VIEW) {
835 update_geometry(view); 835 update_geometry(view);
836 sway_log(L_DEBUG, "Set floating view to %.f x %.f @ %.f, %.f", view->width,
837 view->height, view->x, view->y);
836 if (swayc_is_fullscreen(view)) { 838 if (swayc_is_fullscreen(view)) {
837 wlc_view_bring_to_front(view->handle); 839 wlc_view_bring_to_front(view->handle);
838 } else if (!container->focused 840 } else if (!container->focused