From dd3f34253076c6765a626d747c52164a95dd52bb Mon Sep 17 00:00:00 2001 From: ARDiDo <90479315+ARDiDo@users.noreply.github.com> Date: Sat, 18 Sep 2021 13:12:17 -0400 Subject: [PATCH] fix foot scroll crash --- dwl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 128be93..05c647f 100644 --- a/dwl.c +++ b/dwl.c @@ -818,7 +818,8 @@ void commitnotify_sub(struct wl_listener *listener, void *data) { Subsurface *s = wl_container_of(listener, s, commit); - wlr_output_damage_add_whole(s->c->mon->damage); + if (s->c->mon) + wlr_output_damage_add_whole(s->c->mon->damage); } void