|
|
@ -41,7 +41,7 @@ void arrange_windows(swayc_t *container, int width, int height) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
case C_VIEW:
|
|
|
|
case C_VIEW:
|
|
|
|
sway_log(L_DEBUG, "Setting view to %d x %d @ %d, %d", width, height, container->x, container->y);
|
|
|
|
{
|
|
|
|
struct wlc_geometry geometry = {
|
|
|
|
struct wlc_geometry geometry = {
|
|
|
|
.origin = {
|
|
|
|
.origin = {
|
|
|
|
.x = container->x,
|
|
|
|
.x = container->x,
|
|
|
@ -62,11 +62,15 @@ void arrange_windows(swayc_t *container, int width, int height) {
|
|
|
|
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, &geometry);
|
|
|
|
|
|
|
|
wlc_view_bring_to_front(container->handle);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
wlc_view_set_geometry(container->handle, &geometry);
|
|
|
|
wlc_view_set_geometry(container->handle, &geometry);
|
|
|
|
container->width = width;
|
|
|
|
container->width = width;
|
|
|
|
container->height = height;
|
|
|
|
container->height = height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sway_log(L_DEBUG, "Set view to %d x %d @ %d, %d", geometry.size.w, geometry.size.h,
|
|
|
|
|
|
|
|
geometry.origin.x, geometry.origin.y);
|
|
|
|
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
container->width = width;
|
|
|
|
container->width = width;
|
|
|
|