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
This commit is contained in:
Mike Blumenkrantz 2016-01-19 13:45:08 -05:00
parent d52fffeec9
commit 0df8c94572
1 changed files with 1 additions and 1 deletions

View File

@ -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)