mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
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:
parent
a745f91169
commit
701679bae0
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue