summaryrefslogtreecommitdiff
path: root/src/wayland/surface.c
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-12 14:44:58 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-12 14:44:58 +0300
commita553abf3c46133f76b9a9e3c8166099efbcb9bcf (patch)
tree836be926a7bfff99030ceff6b721492b49321c93 /src/wayland/surface.c
parent93ea4e79528ba9f42d57f9004260dcba309492ba (diff)
wayland: make conn_surface_for static inline zero-lookup accessor
Diffstat (limited to 'src/wayland/surface.c')
-rw-r--r--src/wayland/surface.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/wayland/surface.c b/src/wayland/surface.c
index 242531c..8a2bb5b 100644
--- a/src/wayland/surface.c
+++ b/src/wayland/surface.c
@@ -319,17 +319,6 @@ static void conn_unlink(struct wayland_surface *w)
w->conn = NULL;
}
-struct wayland_surface *conn_surface_for(struct wayland_display *c, struct wl_surface *s)
-{
- if (unlikely(!c || !s)) return NULL;
- struct wayland_surface *fast = (struct wayland_surface *)wl_surface_get_user_data(s);
- if (likely(fast && fast->conn == c && fast->surface == s))
- return fast;
- for (struct wayland_surface *w = c->surfaces; w; w = w->conn_next)
- if (w->surface == s)
- return w;
- return NULL;
-}
static bool spec_valid(const struct yasl_surface_spec *spec)
{