aboutsummaryrefslogtreecommitdiff
path: root/rootston/xwayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/xwayland.c')
-rw-r--r--rootston/xwayland.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c
index 7ecc4d4f..bb8ced8e 100644
--- a/rootston/xwayland.c
+++ b/rootston/xwayland.c
@@ -39,8 +39,12 @@ static void handle_request_configure(struct wl_listener *listener, void *data) {
}
static void activate(struct roots_view *view, bool active) {
- wlr_xwayland_surface_activate(view->desktop->xwayland,
- view->xwayland_surface);
+ if (active) {
+ wlr_xwayland_surface_activate(view->desktop->xwayland,
+ view->xwayland_surface);
+ } else {
+ wlr_xwayland_surface_activate(view->desktop->xwayland, NULL);
+ }
}
void handle_xwayland_surface(struct wl_listener *listener, void *data) {