labwc/src/view.c

34 lines
501 B
C
Raw Normal View History

2019-12-26 21:37:31 +00:00
#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)
2020-09-08 20:51:33 +01:00
{
if (view->minimized == true) {
2020-09-08 20:51:33 +01:00
return;
}
2020-09-08 20:51:33 +01:00
view->minimized = true;
view->impl->unmap(view);
}
void
view_unminimize(struct view *view)
2020-09-08 20:51:33 +01:00
{
if (view->minimized == false) {
2020-09-08 20:51:33 +01:00
return;
}
2020-09-08 20:51:33 +01:00
view->minimized = false;
view->impl->map(view);
}