xwm: improve activation and dont send focus twice

This commit is contained in:
Tony Crisci 2017-10-25 08:39:28 -04:00
parent 1be650d78a
commit 0d1dd84a48
3 changed files with 69 additions and 55 deletions

View file

@ -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) {