rootston: view set position

This commit is contained in:
Tony Crisci 2017-10-19 12:33:02 -04:00
parent 0536ea3c47
commit 169bc216ed
5 changed files with 58 additions and 23 deletions

View file

@ -46,6 +46,16 @@ void view_get_size(struct roots_view *view, struct wlr_box *box) {
box->height = view->wlr_surface->current->height;
}
void view_set_position(struct roots_view *view, double x, double y) {
if (view->set_position) {
view->set_position(view, x, y);
return;
}
view->x = x;
view->y = y;
}
void view_activate(struct roots_view *view, bool activate) {
if (view->activate) {
view->activate(view, activate);