diff options
Diffstat (limited to 'src/wayland/surface.c')
| -rw-r--r-- | src/wayland/surface.c | 11 |
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) { |
