mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
Patched for wlc updates
This commit is contained in:
parent
feb0195341
commit
a7c045a520
|
@ -152,10 +152,10 @@ void arrange_windows(swayc_t *container, int width, int height) {
|
||||||
geometry.origin.y = 0;
|
geometry.origin.y = 0;
|
||||||
geometry.size.w = parent->width;
|
geometry.size.w = parent->width;
|
||||||
geometry.size.h = parent->height;
|
geometry.size.h = parent->height;
|
||||||
wlc_view_set_geometry(container->handle, &geometry);
|
wlc_view_set_geometry(container->handle, 0, &geometry);
|
||||||
wlc_view_bring_to_front(container->handle);
|
wlc_view_bring_to_front(container->handle);
|
||||||
} else {
|
} else {
|
||||||
wlc_view_set_geometry(container->handle, &geometry);
|
wlc_view_set_geometry(container->handle, 0, &geometry);
|
||||||
container->width = width;
|
container->width = width;
|
||||||
container->height = height;
|
container->height = height;
|
||||||
}
|
}
|
||||||
|
@ -232,10 +232,10 @@ void arrange_windows(swayc_t *container, int width, int height) {
|
||||||
geometry.origin.y = 0;
|
geometry.origin.y = 0;
|
||||||
geometry.size.w = parent->width;
|
geometry.size.w = parent->width;
|
||||||
geometry.size.h = parent->height;
|
geometry.size.h = parent->height;
|
||||||
wlc_view_set_geometry(view->handle, &geometry);
|
wlc_view_set_geometry(view->handle, 0, &geometry);
|
||||||
wlc_view_bring_to_front(view->handle);
|
wlc_view_bring_to_front(view->handle);
|
||||||
} else {
|
} else {
|
||||||
wlc_view_set_geometry(view->handle, &geometry);
|
wlc_view_set_geometry(view->handle, 0, &geometry);
|
||||||
view->width = width;
|
view->width = width;
|
||||||
view->height = height;
|
view->height = height;
|
||||||
// Bring the views to the front in order of the list, the list
|
// Bring the views to the front in order of the list, the list
|
||||||
|
|
Loading…
Reference in a new issue