mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Add view_move()
This commit is contained in:
parent
c646343c1d
commit
cb44f047f3
6 changed files with 31 additions and 9 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue