diff --git a/compositor/compositor.c b/compositor/compositor.c index 980098d4..8b3ba3c3 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -2174,6 +2174,9 @@ int main(int argc, char *argv[]) wl_display_run(display); + /* prevent further rendering while shutting down */ + ec->state = WLSC_COMPOSITOR_SLEEPING; + if (xserver) wlsc_xserver_destroy(ec);