src/debug.c: fix inverted string_null_or_empty() check

Reported-By: Domo via IRC
This commit is contained in:
Consolatis 2024-12-30 23:32:09 +01:00 committed by Johan Malm
parent a98b535362
commit cd3d88974c

View file

@ -70,7 +70,7 @@ get_view_part(struct view *view, struct wlr_scene_node *node)
}
if (node == &view->scene_tree->node) {
const char *app_id = view_get_string_prop(view, "app_id");
if (!string_null_or_empty(app_id)) {
if (string_null_or_empty(app_id)) {
return "view";
}
snprintf(view_name, sizeof(view_name), "view (%s)", app_id);