diff options
author | Versus Void <versusvoid@gmail.com> | 2017-10-06 13:57:25 +0300 |
---|---|---|
committer | Versus Void <versusvoid@gmail.com> | 2017-10-06 13:57:25 +0300 |
commit | 4d7ff3cb48d1057765d7307081d8387648ab59b1 (patch) | |
tree | 19a8520a8c0a9bdefdf244d50607b259a93d3a05 | |
parent | b2d478a4189ffd96dc6158003f5cde76b70bd368 (diff) |
Activate only active xwayland views
Fix #217
-rw-r--r-- | rootston/xwayland.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c index 7ecc4d4f..59bb2632 100644 --- a/rootston/xwayland.c +++ b/rootston/xwayland.c @@ -39,8 +39,10 @@ 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); + } } void handle_xwayland_surface(struct wl_listener *listener, void *data) { |