]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/debug.c: fix inverted string_null_or_empty() check
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 30 Dec 2024 22:32:09 +0000 (23:32 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 30 Dec 2024 22:34:30 +0000 (22:34 +0000)
Reported-By: Domo via IRC
src/debug.c

index ceabbd54a24196fe277f4b5896513335ab3e1115..01c64ad2fc0acbddf482009d615687696a3c4a1a 100644 (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);