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()`.
This commit is contained in:
tokyo4j 2024-09-25 21:27:43 +09:00 committed by Hiroaki Yamamoto
parent a745f91169
commit 701679bae0

View file

@ -638,6 +638,10 @@ void
ssd_update_window_icon(struct ssd *ssd) ssd_update_window_icon(struct ssd *ssd)
{ {
#if HAVE_LIBSFDO #if HAVE_LIBSFDO
if (!ssd) {
return;
}
const char *app_id = view_get_string_prop(ssd->view, "app_id"); const char *app_id = view_get_string_prop(ssd->view, "app_id");
if (string_null_or_empty(app_id)) { if (string_null_or_empty(app_id)) {
return; return;