diff options
author | Mikkel Oscar Lyderik <[email protected]> | 2016-04-01 13:36:36 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <[email protected]> | 2016-04-25 00:00:49 +0200 |
commit | 8d700fe008ccf9f7eb4664e236277c9f30a449fb (patch) | |
tree | fb9f36de0acca621a6995db59c52cf3eb2002770 /sway/layout.c | |
parent | ec7ff769c7b4da616ebe6bfd90b70350dd39e166 (diff) |
Fix problems with floating windows
Makes any tabbed/stacked layout a container to separate from floating
windows which may be attached to a workspace.
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 4 |
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) { // use parent size if window is in a stacked/tabbed layout swayc_t *parent = container->parent; - if (parent->layout == L_STACKED || parent->layout == L_TABBED) { + if (swayc_is_tabbed_stacked(container)) { width = parent->width; height = parent->height; } @@ -833,6 +833,8 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { swayc_t *view = container->floating->items[i]; if (view->type == C_VIEW) { update_geometry(view); + sway_log(L_DEBUG, "Set floating view to %.f x %.f @ %.f, %.f", view->width, + view->height, view->x, view->y); if (swayc_is_fullscreen(view)) { wlc_view_bring_to_front(view->handle); } else if (!container->focused |