aboutsummaryrefslogtreecommitdiff
path: root/rootston/xwayland.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-06 09:34:22 -0400
committerDrew DeVault <sir@cmpwn.com>2017-10-06 09:34:22 -0400
commit528f000a7a5ed8b26a14ca09263dc0e7024aba8f (patch)
treea0cfde9f70bb47f33d59991faae7351c068554bd /rootston/xwayland.c
parent4d7ff3cb48d1057765d7307081d8387648ab59b1 (diff)
Deactivate xwayland when focus leaves there
Diffstat (limited to 'rootston/xwayland.c')
-rw-r--r--rootston/xwayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c
index 59bb2632..bb8ced8e 100644
--- a/rootston/xwayland.c
+++ b/rootston/xwayland.c
@@ -42,6 +42,8 @@ static void activate(struct roots_view *view, bool active) {
if (active) {
wlr_xwayland_surface_activate(view->desktop->xwayland,
view->xwayland_surface);
+ } else {
+ wlr_xwayland_surface_activate(view->desktop->xwayland, NULL);
}
}