]> git.mdlowis.com Git - proto/labwc.git/commitdiff
output: set 'labwc' as app_id and title for nested outputs
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 7 Aug 2024 21:28:30 +0000 (23:28 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 16 Aug 2024 21:02:00 +0000 (22:02 +0100)
src/output.c

index b9ac9855c80079468ea2b9e69909a39c9443a0b3..a94c7c2dbc20b6bbb47801aaf13aaf56e9ca202f 100644 (file)
@@ -323,6 +323,13 @@ new_output_notify(struct wl_listener *listener, void *data)
                }
        }
 
+       if (wlr_output_is_wl(wlr_output)) {
+               char title[64];
+               snprintf(title, sizeof(title), "%s - %s", "labwc", wlr_output->name);
+               wlr_wl_output_set_title(wlr_output, title);
+               wlr_wl_output_set_app_id(wlr_output, "labwc");
+       }
+
        /*
         * We offer any display as available for lease, some apps like
         * gamescope want to take ownership of a display when they can