aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-31 10:12:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:31 +0000
commit2cc84db97978388475504592c88911046bcd2eb6 (patch)
tree91efd350b53a6b296c0e78eb5781ef0e59cdddbf /wayland.h
parentconfig: free URL bindings (diff)
urls: initial support for detecting URLs and rendering jump-labels
The jump labels work, but is currently hardcoded to use xdg-open
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index fdfe905c..2e5997e4 100644
--- a/wayland.h
+++ b/wayland.h
@@ -362,6 +362,12 @@ struct monitor {
bool use_output_release;
};
+struct wl_url {
+ const struct url *url;
+ struct wl_surface *surf;
+ struct wl_subsurface *sub_surf;
+};
+
struct wayland;
struct wl_window {
struct terminal *term;
@@ -393,6 +399,7 @@ struct wl_window {
struct wl_callback *frame_callback;
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
+ tll(struct wl_url) urls;
bool is_configured;
bool is_fullscreen;