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

@ -133,6 +133,8 @@ handle_request_resize(struct wl_listener *listener, void *data)
static void
xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
{
view->x = geo.x;
view->y = geo.y;
wlr_xdg_toplevel_set_size(view->xdg_surface, (uint32_t)geo.width,
(uint32_t)geo.height);
}