diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-25 08:39:28 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-25 08:39:28 -0400 |
commit | 0d1dd84a48cbfec848866cfbe4e62652765d7c98 (patch) | |
tree | 4a77a5de387529bb4f19485d87b86170c21a00e4 /rootston | |
parent | 1be650d78a5612164fff9b3b20c5a2a89f13bdf0 (diff) |
xwm: improve activation and dont send focus twice
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/xwayland.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c index d43618c3..221c659d 100644 --- a/rootston/xwayland.c +++ b/rootston/xwayland.c @@ -11,12 +11,8 @@ static void activate(struct roots_view *view, bool active) { assert(view->type == ROOTS_XWAYLAND_VIEW); - if (active) { - wlr_xwayland_surface_activate(view->desktop->xwayland, - view->xwayland_surface); - } else { - wlr_xwayland_surface_activate(view->desktop->xwayland, NULL); - } + struct wlr_xwayland *xwayland = view->desktop->xwayland; + wlr_xwayland_surface_activate(xwayland, view->xwayland_surface, active); } static void resize(struct roots_view *view, uint32_t width, uint32_t height) { |