aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 8d1d34d6..9781581e 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -40,6 +40,15 @@ void view_get_input_bounds(struct roots_view *view, struct wlr_box *box) {
view->get_input_bounds(view, box);
return;
}
+
+ if (view->type == ROOTS_XDG_SHELL_V6_VIEW) {
+ box->x = view->xdg_surface_v6->geometry->x;
+ box->y = view->xdg_surface_v6->geometry->y;
+ box->width = view->xdg_surface_v6->geometry->width;
+ box->height = view->xdg_surface_v6->geometry->height;
+ return;
+ }
+
box->x = box->y = 0;
box->width = view->wlr_surface->current->width;
box->height = view->wlr_surface->current->height;