diff --git a/src/osd.c b/src/osd.c index e2b7d808..07ff5ada 100644 --- a/src/osd.c +++ b/src/osd.c @@ -29,11 +29,11 @@ is_title_different(struct view *view) { switch (view->type) { 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")); #if HAVE_XWAYLAND 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); #endif }