From 701679bae0257018ea1c39c5b282cbbfce8d5a54 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Wed, 25 Sep 2024 21:27:43 +0900 Subject: [PATCH] ssd: fix crash on app_id updates while the app is in fullscreen `view->ssd_enabled && view->ssd == NULL` is possible during the client is in fullscreen. So we need to check if `view->ssd` is NULL first in `ssd_update_window_icon()`. --- src/ssd/ssd-titlebar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssd/ssd-titlebar.c b/src/ssd/ssd-titlebar.c index 923ae91e..caa0a759 100644 --- a/src/ssd/ssd-titlebar.c +++ b/src/ssd/ssd-titlebar.c @@ -638,6 +638,10 @@ void ssd_update_window_icon(struct ssd *ssd) { #if HAVE_LIBSFDO + if (!ssd) { + return; + } + const char *app_id = view_get_string_prop(ssd->view, "app_id"); if (string_null_or_empty(app_id)) { return;