From 359023e2cceb457e3118f5d77099196ada5a0e3c Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 21 May 2023 07:54:21 +0900 Subject: [PATCH] compositor: fix null pointer when clicking desktop sometimes --- apps/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/compositor.c b/apps/compositor.c index 0c34b7f2..94c79187 100644 --- a/apps/compositor.c +++ b/apps/compositor.c @@ -327,7 +327,7 @@ static void set_focused_window(yutani_globals_t * yg, yutani_server_window_t * w return; /* Already focused */ } - if (w->minimized) { + if (w && w->minimized) { window_unminimize(yg,w); }