}
static void
-configure(struct view *view, struct wlr_box geo)
+xwayland_view_configure(struct view *view, struct wlr_box geo)
{
view->pending = geo;
wlr_xwayland_surface_configure(xwayland_surface_from_view(view),
int height = event->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
-_close(struct view *view)
+xwayland_view_close(struct view *view)
{
wlr_xwayland_surface_close(xwayland_surface_from_view(view));
}
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 =
xwayland_surface_from_view(view);
}
static void
-map(struct view *view)
+xwayland_view_map(struct view *view)
{
if (view->mapped) {
return;
}
static void
-unmap(struct view *view)
+xwayland_view_unmap(struct view *view)
{
if (!view->mapped) {
return;
}
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),
maximized);
}
static void
-move_to_front(struct view *view)
+xwayland_view_move_to_front(struct view *view)
{
view_impl_move_to_front(view);
move_sub_views_to_front(view);
}
static void
-set_activated(struct view *view, bool activated)
+xwayland_view_set_activated(struct view *view, bool activated)
{
struct wlr_xwayland_surface *xwayland_surface =
xwayland_surface_from_view(view);
}
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),
fullscreen);
}
-static const struct view_impl xwl_view_impl = {
- .configure = configure,
- .close = _close,
- .get_string_prop = get_string_prop,
- .map = map,
- .set_activated = set_activated,
- .set_fullscreen = set_fullscreen,
- .unmap = unmap,
- .maximize = maximize,
- .move_to_front = move_to_front,
+static const struct view_impl xwayland_view_impl = {
+ .configure = xwayland_view_configure,
+ .close = xwayland_view_close,
+ .get_string_prop = xwayland_view_get_string_prop,
+ .map = xwayland_view_map,
+ .set_activated = xwayland_view_set_activated,
+ .set_fullscreen = xwayland_view_set_fullscreen,
+ .unmap = xwayland_view_unmap,
+ .maximize = xwayland_view_maximize,
+ .move_to_front = xwayland_view_move_to_front,
};
static void
view->server = server;
view->type = LAB_XWAYLAND_VIEW;
- view->impl = &xwl_view_impl;
+ view->impl = &xwayland_view_impl;
/*
* Set two-way view <-> xsurface association. Usually the