aboutsummaryrefslogtreecommitdiff
path: root/rootston/xwayland.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-06 09:34:48 -0400
committerGitHub <noreply@github.com>2017-10-06 09:34:48 -0400
commit6aafc2f61a395cf72b204f487e74bd83965a41e6 (patch)
tree41124f5423f63b5a6c5fb8e1435246f2560b1ffa /rootston/xwayland.c
parentd1c26059d2c901d5b53f6d5738c2e9708144bad3 (diff)
parent528f000a7a5ed8b26a14ca09263dc0e7024aba8f (diff)
Merge pull request #223 from versusvoid/xwayland-activate
Activate only active xwayland views
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) {