From 7b8a964fd57d73d47dc1b7a3fb4fea78cd3912f3 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 2 Aug 2016 20:35:54 +0300 Subject: [PATCH] keyboard: Send focus out only on way<->x11 change Do not send focus out event if we switch between x11 windows as sometimes x11 windows act weirdly on this. --- src/compositor/seat/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/seat/keyboard.c b/src/compositor/seat/keyboard.c index 0aef7626..9050533b 100644 --- a/src/compositor/seat/keyboard.c +++ b/src/compositor/seat/keyboard.c @@ -142,7 +142,7 @@ defocus(struct wlc_keyboard *keyboard, struct wlc_view *new_focus) if (!(surface = wl_resource_from_wlc_resource(view->surface, "surface"))) goto out; - if (is_x11_view(view)) + if (is_x11_view(view) && (!new_focus || !is_x11_view(new_focus))) wlc_x11_window_set_active(&view->x11, false); wlc_resource *r;