From 7b4b823758c87438624cc685e038c4126d944996 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 Jan 2016 13:45:08 -0500 Subject: [PATCH] set want_focus for xdg popup surfaces on creation these types of surfaces should grab focus as early as possible, and setting the flag at this time ensures that it will be handled during the next client eval --- src/modules/wl_desktop_shell/e_mod_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c index 60279f45f..1c9f7f651 100644 --- a/src/modules/wl_desktop_shell/e_mod_main.c +++ b/src/modules/wl_desktop_shell/e_mod_main.c @@ -1249,7 +1249,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource cdata->shell.unmap = _e_xdg_shell_surface_unmap; EC_CHANGED(ec); - ec->new_client = ec->override = 1; + ec->new_client = ec->want_focus = ec->override = 1; e_client_unignore(ec); e_comp->new_clients++; if (!ec->internal)