xwayland.c: prefix view_impl functions with xwayland_view_

...to make it consistent with xdg.c
This commit is contained in:
Johan Malm 2023-02-06 20:01:18 +00:00 committed by Johan Malm
parent b8ec5a3e2e
commit 06044799dd

View file

@ -245,7 +245,7 @@ handle_destroy(struct wl_listener *listener, void *data)
} }
static void static void
configure(struct view *view, struct wlr_box geo) xwayland_view_configure(struct view *view, struct wlr_box geo)
{ {
view->pending = geo; view->pending = geo;
wlr_xwayland_surface_configure(xwayland_surface_from_view(view), wlr_xwayland_surface_configure(xwayland_surface_from_view(view),
@ -272,7 +272,8 @@ handle_request_configure(struct wl_listener *listener, void *data)
int height = event->height; int height = event->height;
view_adjust_size(view, &width, &height); view_adjust_size(view, &width, &height);
configure(view, (struct wlr_box){event->x, event->y, width, height}); xwayland_view_configure(view,
(struct wlr_box){event->x, event->y, width, height});
} }
static void static void
@ -340,13 +341,13 @@ handle_set_class(struct wl_listener *listener, void *data)
} }
static void static void
_close(struct view *view) xwayland_view_close(struct view *view)
{ {
wlr_xwayland_surface_close(xwayland_surface_from_view(view)); wlr_xwayland_surface_close(xwayland_surface_from_view(view));
} }
static const char * static const char *
get_string_prop(struct view *view, const char *prop) xwayland_view_get_string_prop(struct view *view, const char *prop)
{ {
struct wlr_xwayland_surface *xwayland_surface = struct wlr_xwayland_surface *xwayland_surface =
xwayland_surface_from_view(view); xwayland_surface_from_view(view);
@ -425,7 +426,7 @@ top_left_edge_boundary_check(struct view *view)
} }
static void static void
map(struct view *view) xwayland_view_map(struct view *view)
{ {
if (view->mapped) { if (view->mapped) {
return; return;
@ -494,7 +495,7 @@ map(struct view *view)
} }
static void static void
unmap(struct view *view) xwayland_view_unmap(struct view *view)
{ {
if (!view->mapped) { if (!view->mapped) {
return; return;
@ -506,7 +507,7 @@ unmap(struct view *view)
} }
static void static void
maximize(struct view *view, bool maximized) xwayland_view_maximize(struct view *view, bool maximized)
{ {
wlr_xwayland_surface_set_maximized(xwayland_surface_from_view(view), wlr_xwayland_surface_set_maximized(xwayland_surface_from_view(view),
maximized); maximized);
@ -544,14 +545,14 @@ move_sub_views_to_front(struct view *parent)
} }
static void static void
move_to_front(struct view *view) xwayland_view_move_to_front(struct view *view)
{ {
view_impl_move_to_front(view); view_impl_move_to_front(view);
move_sub_views_to_front(view); move_sub_views_to_front(view);
} }
static void static void
set_activated(struct view *view, bool activated) xwayland_view_set_activated(struct view *view, bool activated)
{ {
struct wlr_xwayland_surface *xwayland_surface = struct wlr_xwayland_surface *xwayland_surface =
xwayland_surface_from_view(view); xwayland_surface_from_view(view);
@ -575,22 +576,22 @@ set_activated(struct view *view, bool activated)
} }
static void static void
set_fullscreen(struct view *view, bool fullscreen) xwayland_view_set_fullscreen(struct view *view, bool fullscreen)
{ {
wlr_xwayland_surface_set_fullscreen(xwayland_surface_from_view(view), wlr_xwayland_surface_set_fullscreen(xwayland_surface_from_view(view),
fullscreen); fullscreen);
} }
static const struct view_impl xwl_view_impl = { static const struct view_impl xwayland_view_impl = {
.configure = configure, .configure = xwayland_view_configure,
.close = _close, .close = xwayland_view_close,
.get_string_prop = get_string_prop, .get_string_prop = xwayland_view_get_string_prop,
.map = map, .map = xwayland_view_map,
.set_activated = set_activated, .set_activated = xwayland_view_set_activated,
.set_fullscreen = set_fullscreen, .set_fullscreen = xwayland_view_set_fullscreen,
.unmap = unmap, .unmap = xwayland_view_unmap,
.maximize = maximize, .maximize = xwayland_view_maximize,
.move_to_front = move_to_front, .move_to_front = xwayland_view_move_to_front,
}; };
static void static void
@ -615,7 +616,7 @@ handle_new_surface(struct wl_listener *listener, void *data)
view->server = server; view->server = server;
view->type = LAB_XWAYLAND_VIEW; view->type = LAB_XWAYLAND_VIEW;
view->impl = &xwl_view_impl; view->impl = &xwayland_view_impl;
/* /*
* Set two-way view <-> xsurface association. Usually the * Set two-way view <-> xsurface association. Usually the