diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-09-13 06:51:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-09-13 07:04:18 +0000 |
| commit | 7984f08925e18e24e6b54ac4498d65fa26b2a4d6 (patch) | |
| tree | 377f4a8443f768c18068b5b8f8d9e962b10b126c /csi.c | |
| parent | main: include toplevel-icon support in --version output (diff) | |
osc: OSC-1 does not set the icon, it sets the icon _label_
In fact, there appears there *is* no escape sequence to set the icon.
Keep most of the logic in place, but in practice, we'll always set the
icon to the app-id. That is, at startup, we set it to the configured
app-id (either from config, or the command line).
OSC-176, which sets the app-id, also updates the icon (to the app-id).
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1377,10 +1377,6 @@ csi_dispatch(struct terminal *term, uint8_t final) tll_push_back( term->window_title_stack, xstrdup(term->window_title)); } - if (what == 0 || what == 1) { - tll_push_back( - term->window_icon_stack, xstrdup(term->window_icon)); - } break; } @@ -1394,13 +1390,6 @@ csi_dispatch(struct terminal *term, uint8_t final) free(title); } } - if (what == 0 || what == 1) { - if (tll_length(term->window_icon_stack) > 0) { - char *icon = tll_pop_back(term->window_icon_stack); - term_set_icon(term, icon); - free(icon); - } - } break; } |
