Render layer surfaces and respect exclusive zone

This commit is contained in:
Drew DeVault 2018-03-28 16:38:11 -04:00
parent 0c8a64942e
commit 68cfa7ef67
9 changed files with 320 additions and 33 deletions

View file

@ -84,7 +84,7 @@ static void set_activated(struct sway_view *view, bool activated) {
wlr_xwayland_surface_activate(surface, activated);
}
static void close(struct sway_view *view) {
static void close_view(struct sway_view *view) {
if (!assert_xwayland(view)) {
return;
}
@ -203,7 +203,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
sway_view->iface.set_size = set_size;
sway_view->iface.set_position = set_position;
sway_view->iface.set_activated = set_activated;
sway_view->iface.close = close;
sway_view->iface.close = close_view;
sway_view->wlr_xwayland_surface = xsurface;
sway_view->sway_xwayland_surface = sway_surface;
sway_view->surface = xsurface->surface;