mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
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).
This commit is contained in:
parent
c6208a98c8
commit
7984f08925
4 changed files with 8 additions and 46 deletions
|
|
@ -552,8 +552,8 @@ struct terminal {
|
|||
bool window_title_has_been_set;
|
||||
char *window_title;
|
||||
tll(char *) window_title_stack;
|
||||
char *window_icon;
|
||||
tll(char *)window_icon_stack;
|
||||
//char *window_icon; /* No escape sequence available to set the icon */
|
||||
//tll(char *)window_icon_stack;
|
||||
char *app_id;
|
||||
|
||||
struct {
|
||||
|
|
@ -932,7 +932,6 @@ void term_set_user_mouse_cursor(struct terminal *term, const char *cursor);
|
|||
|
||||
void term_set_window_title(struct terminal *term, const char *title);
|
||||
void term_set_app_id(struct terminal *term, const char *app_id);
|
||||
void term_set_icon(struct terminal *term, const char *icon);
|
||||
const char *term_icon(const struct terminal *term);
|
||||
void term_flash(struct terminal *term, unsigned duration_ms);
|
||||
void term_bell(struct terminal *term);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue