mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-08 06:25:59 +01:00
rootston: fix segfault in view_at
Make sure the view is mapped.
This commit is contained in:
parent
659d39baaa
commit
1454d1c8f8
1 changed files with 3 additions and 0 deletions
|
@ -576,6 +576,9 @@ static bool view_at(struct roots_view *view, double lx, double ly,
|
|||
view->wl_shell_surface->state == WLR_WL_SHELL_SURFACE_STATE_POPUP) {
|
||||
return false;
|
||||
}
|
||||
if (view->wlr_surface == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
double view_sx = lx - view->x;
|
||||
double view_sy = ly - view->y;
|
||||
|
|
Loading…
Reference in a new issue