aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-28 14:14:35 +0100
committeremersion <contact@emersion.fr>2018-10-28 23:14:39 +0100
commit1454d1c8f872644374772266c3da136e923d50a4 (patch)
treee9e6f7ca61f7af175174503f8b43a5548b76d757
parent659d39baaaa51e27c3e078390e3f1b588f390aa3 (diff)
rootston: fix segfault in view_at
Make sure the view is mapped.
-rw-r--r--rootston/desktop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 69c71867..8cb9e0d5 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -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;