Refactor view_move_resize()

This commit is contained in:
Johan Malm 2020-12-22 20:35:06 +00:00
parent 57588aa173
commit e0770a5672
5 changed files with 8 additions and 15 deletions

View file

@ -1,15 +1,9 @@
#include "labwc.h"
void
view_resize(struct view *view, struct wlr_box geo)
view_move_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);
view->impl->configure(view, geo);
}
void