From f9379f9a4694a769c75a7647f05986f38d62f0f1 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 3 Oct 2017 15:57:22 -0400 Subject: [PATCH] rootston-desktop: use window geometry for input bounds --- rootston/desktop.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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;