Skip to content

Commit

Permalink
render-manager: do not crash if running nested (no wlr_session) (#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkondor authored Oct 26, 2024
1 parent eba9fa5 commit 6bbd362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/render-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6bbd362

Please sign in to comment.