mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
rootston-desktop: use window geometry for input bounds
This commit is contained in:
parent
e003296c23
commit
f9379f9a46
1 changed files with 9 additions and 0 deletions
|
@ -40,6 +40,15 @@ void view_get_input_bounds(struct roots_view *view, struct wlr_box *box) {
|
||||||
view->get_input_bounds(view, box);
|
view->get_input_bounds(view, box);
|
||||||
return;
|
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->x = box->y = 0;
|
||||||
box->width = view->wlr_surface->current->width;
|
box->width = view->wlr_surface->current->width;
|
||||||
box->height = view->wlr_surface->current->height;
|
box->height = view->wlr_surface->current->height;
|
||||||
|
|
Loading…
Reference in a new issue