aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-06 10:30:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:33 +0000
commit69706546c8ca4de832fcd81e8feae4122670e4ab (patch)
treef3ec460b0b42721c08aa76347df1cff78d16359e
parentreadme: add URL mode to the feature list (diff)
term: surface-kind: add TERM_SURF_JUMP_LABEL
-rw-r--r--terminal.c7
-rw-r--r--terminal.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 624b7a21..c67dda58 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2827,8 +2827,13 @@ term_surface_kind(const struct terminal *term, const struct wl_surface *surface)
return TERM_SURF_BUTTON_MAXIMIZE;
else if (surface == term->window->csd.surface[CSD_SURF_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;
+ }
}
static bool
diff --git a/terminal.h b/terminal.h
index b58cd137..c6a618bf 100644
--- a/terminal.h
+++ b/terminal.h
@@ -211,6 +211,7 @@ enum term_surface {
TERM_SURF_SEARCH,
TERM_SURF_SCROLLBACK_INDICATOR,
TERM_SURF_RENDER_TIMER,
+ TERM_SURF_JUMP_LABEL,
TERM_SURF_TITLE,
TERM_SURF_BORDER_LEFT,
TERM_SURF_BORDER_RIGHT,