From 6bbd36266a5a5181167fb6bf2d25065a5c8545d5 Mon Sep 17 00:00:00 2001 From: Daniel Kondor Date: Sat, 26 Oct 2024 11:23:05 +0200 Subject: [PATCH] render-manager: do not crash if running nested (no wlr_session) (#2497) --- src/output/render-manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/render-manager.cpp b/src/output/render-manager.cpp index 16ec2b877..9f15a5c16 100644 --- a/src/output/render-manager.cpp +++ b/src/output/render-manager.cpp @@ -959,7 +959,7 @@ class wf::render_manager::impl { /* If the session is not active, don't paint. * This is the case when e.g. switching to another tty */ - if (!wf::get_core().session->active) + if (wf::get_core().session && !wf::get_core().session->active) { return; }