mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
33 lines
501 B
C
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);
|
|
}
|