labwc/src/view.c
Johan Malm 96e05057a3 Update .clang-format
Align with wlroots style
2020-09-28 20:41:41 +01:00

33 lines
501 B
C

#include "labwc.h"
void
view_resize(struct view *view, struct wlr_box geo)
{
struct wlr_box box = {
.x = view->x,
.y = view->y,
.width = geo.width,
.height = geo.height,
};
view->impl->configure(view, box);
}
void
view_minimize(struct view *view)
{
if (view->minimized == true) {
return;
}
view->minimized = true;
view->impl->unmap(view);
}
void
view_unminimize(struct view *view)
{
if (view->minimized == false) {
return;
}
view->minimized = false;
view->impl->map(view);
}