aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-21 09:37:58 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-21 09:37:58 -0400
commita87b60e31e5288c1c3e8c8f94c9a7ccb29e38b54 (patch)
treee9d1daaa8fc5a2ee1103ec19855b958f47932145 /rootston/desktop.c
parent39308cb8688560607cb1d024123d32a7905c6369 (diff)
parent1782d5e7b7dc5e494cfee72b758d5fa8114aecc8 (diff)
Merge branch 'master' into feature/data-device-selection
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index a7137255..641315a8 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -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);