mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Fix borders with floating windows
This commit is contained in:
parent
6fa6c27f3d
commit
0af55539a8
2 changed files with 50 additions and 9 deletions
|
|
@ -349,13 +349,13 @@ static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geo
|
|||
view->desired_width = geometry->size.w;
|
||||
view->desired_height = geometry->size.h;
|
||||
|
||||
/* if (view->is_floating) { */
|
||||
/* view->width = view->desired_width; */
|
||||
/* view->height = view->desired_height; */
|
||||
/* view->x = geometry->origin.x; */
|
||||
/* view->y = geometry->origin.y; */
|
||||
/* /1* arrange_windows(view->parent, -1, -1); *1/ */
|
||||
/* } */
|
||||
if (view->is_floating) {
|
||||
view->width = view->desired_width;
|
||||
view->height = view->desired_height;
|
||||
view->x = geometry->origin.x;
|
||||
view->y = geometry->origin.y;
|
||||
arrange_windows(view->parent, -1, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue