Add view_move()

This commit is contained in:
Johan Malm 2020-12-23 18:52:46 +00:00
parent c646343c1d
commit cb44f047f3
6 changed files with 31 additions and 9 deletions

View file

@ -168,6 +168,13 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
}
}
static void
xdg_toplevel_view_move(struct view *view, double x, double y)
{
view->x = x;
view->y = y;
}
static void
xdg_toplevel_view_close(struct view *view)
{
@ -242,6 +249,7 @@ static const struct view_impl xdg_toplevel_view_impl = {
.close = xdg_toplevel_view_close,
.for_each_surface = xdg_toplevel_view_for_each_surface,
.map = xdg_toplevel_view_map,
.move = xdg_toplevel_view_move,
.unmap = xdg_toplevel_view_unmap,
};