diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-03 15:57:22 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-03 15:57:22 -0400 |
commit | f9379f9a4694a769c75a7647f05986f38d62f0f1 (patch) | |
tree | c291902eb2a5c691b15fe6ec357b6db23c139bc0 /rootston | |
parent | e003296c23fb0a974a13121cd940d6bf3fe63fac (diff) |
rootston-desktop: use window geometry for input bounds
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/desktop.c | 9 |
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; |