mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
Fix problems with floating windows
Makes any tabbed/stacked layout a container to separate from floating windows which may be attached to a workspace.
This commit is contained in:
parent
ec7ff769c7
commit
8d700fe008
6 changed files with 26 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue