Activate only active xwayland views

Fix #217
master
Versus Void 7 years ago
parent b2d478a418
commit 4d7ff3cb48

@ -39,8 +39,10 @@ static void handle_request_configure(struct wl_listener *listener, void *data) {
} }
static void activate(struct roots_view *view, bool active) { static void activate(struct roots_view *view, bool active) {
if (active) {
wlr_xwayland_surface_activate(view->desktop->xwayland, wlr_xwayland_surface_activate(view->desktop->xwayland,
view->xwayland_surface); view->xwayland_surface);
}
} }
void handle_xwayland_surface(struct wl_listener *listener, void *data) { void handle_xwayland_surface(struct wl_listener *listener, void *data) {

Loading…
Cancel
Save