summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 37dc27f..82b7248 100644
--- a/dwl.c
+++ b/dwl.c
@@ -627,6 +627,7 @@ cleanup(void)
{
#ifdef XWAYLAND
wlr_xwayland_destroy(xwayland);
+ xwayland = NULL;
#endif
wl_display_destroy_clients(dpy);
if (child_pid > 0) {