Remove view_impl->map and view_impl->unmap

jlindgren: data parameter to handle_unmap() is NULL
This commit is contained in:
tokyo4j 2025-11-23 14:24:42 +09:00 committed by John Lindgren
parent e96f4a032b
commit 3c0e010c58
4 changed files with 17 additions and 38 deletions

View file

@ -2444,27 +2444,6 @@ mappable_disconnect(struct mappable *mappable)
mappable->connected = false;
}
static void
handle_map(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, mappable.map);
view->impl->map(view);
}
static void
handle_unmap(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, mappable.unmap);
view->impl->unmap(view);
}
void
view_connect_map(struct view *view, struct wlr_surface *surface)
{
assert(view);
mappable_connect(&view->mappable, surface, handle_map, handle_unmap);
}
/* Used in both (un)map and (un)minimize */
void
view_update_visibility(struct view *view)