mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
osd: fix crash when props are NULL
this happened while running Xwayland *over* waypipe, so is likely not a common case, but is possible
This commit is contained in:
parent
fd7f06a375
commit
4ce96f75dc
1 changed files with 2 additions and 2 deletions
|
|
@ -29,11 +29,11 @@ is_title_different(struct view *view)
|
||||||
{
|
{
|
||||||
switch (view->type) {
|
switch (view->type) {
|
||||||
case LAB_XDG_SHELL_VIEW:
|
case LAB_XDG_SHELL_VIEW:
|
||||||
return strcmp(view_get_string_prop(view, "title"),
|
return g_strcmp0(view_get_string_prop(view, "title"),
|
||||||
view_get_string_prop(view, "app_id"));
|
view_get_string_prop(view, "app_id"));
|
||||||
#if HAVE_XWAYLAND
|
#if HAVE_XWAYLAND
|
||||||
case LAB_XWAYLAND_VIEW:
|
case LAB_XWAYLAND_VIEW:
|
||||||
return strcmp(view_get_string_prop(view, "title"),
|
return g_strcmp0(view_get_string_prop(view, "title"),
|
||||||
view->xwayland_surface->class);
|
view->xwayland_surface->class);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue