mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-04 06:46:48 -04:00
conf: add app-id config option and --app-id command line option
This commit is contained in:
parent
371dd65949
commit
4d52a870b4
12 changed files with 84 additions and 15 deletions
|
|
@ -993,7 +993,7 @@ struct wl_window *
|
|||
wayl_win_init(struct terminal *term)
|
||||
{
|
||||
struct wayland *wayl = term->wl;
|
||||
const struct config *conf = wayl->conf;
|
||||
const struct config *conf = term->conf;
|
||||
|
||||
struct wl_window *win = calloc(1, sizeof(*win));
|
||||
win->term = term;
|
||||
|
|
@ -1025,7 +1025,7 @@ wayl_win_init(struct terminal *term)
|
|||
win->xdg_toplevel = xdg_surface_get_toplevel(win->xdg_surface);
|
||||
xdg_toplevel_add_listener(win->xdg_toplevel, &xdg_toplevel_listener, win);
|
||||
|
||||
xdg_toplevel_set_app_id(win->xdg_toplevel, "foot");
|
||||
xdg_toplevel_set_app_id(win->xdg_toplevel, conf->app_id);
|
||||
|
||||
/* Request server-side decorations */
|
||||
if (wayl->xdg_decoration_manager != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue