aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-29 11:13:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-29 11:13:58 +0000
commitc917a74f487941fa16548261680484cb78e63189 (patch)
tree2b3fb5dad7e59b48adad57301f8821c49aa0de69 /wayland.c
parentwayland: store pointer to window instance in all surfaces (diff)
wayland: remove all usages of wayl_terminal_from_surface()
Use the 'user data' pointer from the wayland surface instead.
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/wayland.c b/wayland.c
index e5249a1d..5d3a30df 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1150,19 +1150,6 @@ wayl_reload_cursor_theme(struct wayland *wayl, struct terminal *term)
return render_xcursor_set(term);
}
-struct terminal *
-wayl_terminal_from_surface(struct wayland *wayl, struct wl_surface *surface)
-{
- tll_foreach(wayl->terms, it) {
- if (term_surface_kind(it->item, surface) != TERM_SURF_NONE)
- return it->item;
- }
-
- assert(false);
- LOG_WARN("surface %p doesn't map to a terminal", surface);
- return NULL;
-}
-
void
wayl_flush(struct wayland *wayl)
{