mirror of
https://github.com/labwc/labwc.git
synced 2026-05-20 21:37:41 -04:00
window-title: implement window-title command line argument
When -t or --window-title is supplied, its required argument is treated as a format string where `%o` is replaced by the `wlr-output`'s `name` when we set the window title. This uses glib to split and join the format string because our own `string-helpers` library only has `str_join`. Otherwise using `string-helpers` would have been preferred.
This commit is contained in:
parent
7a53f294a8
commit
df6dde131f
3 changed files with 19 additions and 8 deletions
|
|
@ -315,6 +315,8 @@ struct server {
|
|||
struct sfdo *sfdo;
|
||||
|
||||
pid_t primary_client_pid;
|
||||
|
||||
char *window_title_fmt;
|
||||
};
|
||||
|
||||
/* defined in main.c */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue