mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
Remove view_impl->map and view_impl->unmap
jlindgren: data parameter to handle_unmap() is NULL
This commit is contained in:
parent
e96f4a032b
commit
3c0e010c58
4 changed files with 17 additions and 38 deletions
21
src/view.c
21
src/view.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue