summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-19 13:45:08 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-02 13:34:09 -0500
commit7b4b823758c87438624cc685e038c4126d944996 (patch)
treea809d2890e14d23b7bdb3331681eaef8d4951ffb
parentf63ebeb939205e4f70c235628d23e2f2b9728bfc (diff)
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
-rw-r--r--src/modules/wl_desktop_shell/e_mod_main.c2
1 files changed, 1 insertions, 1 deletions
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
1249 cdata->shell.unmap = _e_xdg_shell_surface_unmap; 1249 cdata->shell.unmap = _e_xdg_shell_surface_unmap;
1250 1250
1251 EC_CHANGED(ec); 1251 EC_CHANGED(ec);
1252 ec->new_client = ec->override = 1; 1252 ec->new_client = ec->want_focus = ec->override = 1;
1253 e_client_unignore(ec); 1253 e_client_unignore(ec);
1254 e_comp->new_clients++; 1254 e_comp->new_clients++;
1255 if (!ec->internal) 1255 if (!ec->internal)