From 001085f349e08bccabb13910bfb5f5d77c5462b5 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 6 Oct 2017 11:37:50 -0400 Subject: [PATCH] do not set E_Client->take_focus for popup wl clients --- src/bin/e_comp_wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 83fe391d4..846d22f0d 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1351,7 +1351,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) { if (!e_client_has_xwindow(ec)) { - ec->take_focus = !starting || ec->internal_elm_win; + ec->take_focus = !e_client_util_is_popup(ec) && (!starting || ec->internal_elm_win); ec->want_focus = ec->override && !e_client_util_is_popup(ec) && !ec->parent; if (ec->parent && (!ec->lock_user_location) && (!e_client_util_is_popup(ec))) e_comp_object_util_center_on(ec->frame, ec->parent->frame);