build: fix name collision with wlroots, when linking statically

This commit is contained in:
Dima Krasner 2021-11-08 20:17:08 +02:00 committed by Johan Malm
parent dd1663e627
commit 04450b5e4d
4 changed files with 7 additions and 7 deletions

View file

@ -342,7 +342,7 @@ void xwayland_unmanaged_create(struct server *server,
void view_child_init(struct view_child *child, struct view *view,
struct wlr_surface *wlr_surface);
void view_child_finish(struct view_child *child);
void subsurface_create(struct view *view, struct wlr_subsurface *wlr_subsurface);
void view_subsurface_create(struct view *view, struct wlr_subsurface *wlr_subsurface);
void view_set_activated(struct view *view, bool activated);
struct border view_border(struct view *view);

View file

@ -21,7 +21,7 @@ subsurface_handle_destroy(struct wl_listener *listener, void *data)
}
void
subsurface_create(struct view *view, struct wlr_subsurface *wlr_subsurface)
view_subsurface_create(struct view *view, struct wlr_subsurface *wlr_subsurface)
{
struct view_subsurface *subsurface =
calloc(1, sizeof(struct view_subsurface));

View file

@ -19,7 +19,7 @@ view_child_handle_new_subsurface(struct wl_listener *listener, void *data)
struct view_child *child;
child = wl_container_of(listener, child, new_subsurface);
struct wlr_subsurface *wlr_subsurface = data;
subsurface_create(child->parent, wlr_subsurface);
view_subsurface_create(child->parent, wlr_subsurface);
}
void

View file

@ -4,7 +4,7 @@
#include "ssd.h"
/*
* xdg_popup_create() and subsurface_create() are only called for the
* xdg_popup_create() and view_subsurface_create() are only called for the
* purposes of tracking damage.
*/
static void
@ -20,7 +20,7 @@ new_subsurface_notify(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, new_subsurface);
struct wlr_subsurface *wlr_subsurface = data;
subsurface_create(view, wlr_subsurface);
view_subsurface_create(view, wlr_subsurface);
}
static bool
@ -337,11 +337,11 @@ xdg_toplevel_view_map(struct view *view)
struct wlr_subsurface *subsurface;
wl_list_for_each(subsurface, &view->surface->current.subsurfaces_below,
current.link) {
subsurface_create(view, subsurface);
view_subsurface_create(view, subsurface);
}
wl_list_for_each(subsurface, &view->surface->current.subsurfaces_above,
current.link) {
subsurface_create(view, subsurface);
view_subsurface_create(view, subsurface);
}
view->been_mapped = true;