aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-06 15:39:39 +0200
committeremersion <contact@emersion.fr>2017-10-06 16:03:35 +0200
commit972e9dbd1b2eb2853a60632d279bd754daf7c440 (patch)
tree8005b87e755b170794842d597d206bafc07fd6a5 /rootston/desktop.c
parent8ff548cdbaf5ea4e20758d6ee58d6db0c4daf8cd (diff)
Add close command, add close for xwayland
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index f99afaf5..d214e280 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -58,6 +58,12 @@ void view_resize(struct roots_view *view, uint32_t width, uint32_t height) {
}
}
+void view_close(struct roots_view *view) {
+ if (view->close) {
+ view->close(view);
+ }
+}
+
static struct wlr_subsurface *subsurface_at(struct wlr_surface *surface,
double sx, double sy, double *sub_x, double *sub_y) {
struct wlr_subsurface *subsurface;