mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-10 05:33:51 -04:00
term: surface-kind: add TERM_SURF_JUMP_LABEL
This commit is contained in:
parent
69847a19d6
commit
69706546c8
2 changed files with 7 additions and 1 deletions
|
|
@ -2827,8 +2827,13 @@ term_surface_kind(const struct terminal *term, const struct wl_surface *surface)
|
||||||
return TERM_SURF_BUTTON_MAXIMIZE;
|
return TERM_SURF_BUTTON_MAXIMIZE;
|
||||||
else if (surface == term->window->csd.surface[CSD_SURF_CLOSE])
|
else if (surface == term->window->csd.surface[CSD_SURF_CLOSE])
|
||||||
return TERM_SURF_BUTTON_CLOSE;
|
return TERM_SURF_BUTTON_CLOSE;
|
||||||
else
|
else {
|
||||||
|
tll_foreach(term->window->urls, it) {
|
||||||
|
if (surface == it->item.surf)
|
||||||
|
return TERM_SURF_JUMP_LABEL;
|
||||||
|
}
|
||||||
return TERM_SURF_NONE;
|
return TERM_SURF_NONE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
|
|
@ -211,6 +211,7 @@ enum term_surface {
|
||||||
TERM_SURF_SEARCH,
|
TERM_SURF_SEARCH,
|
||||||
TERM_SURF_SCROLLBACK_INDICATOR,
|
TERM_SURF_SCROLLBACK_INDICATOR,
|
||||||
TERM_SURF_RENDER_TIMER,
|
TERM_SURF_RENDER_TIMER,
|
||||||
|
TERM_SURF_JUMP_LABEL,
|
||||||
TERM_SURF_TITLE,
|
TERM_SURF_TITLE,
|
||||||
TERM_SURF_BORDER_LEFT,
|
TERM_SURF_BORDER_LEFT,
|
||||||
TERM_SURF_BORDER_RIGHT,
|
TERM_SURF_BORDER_RIGHT,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue