discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7b4b823758c87438624cc685e038c4126d944996

commit 7b4b823758c87438624cc685e038c4126d944996
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Jan 19 13:45:08 2016 -0500

    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 60279f4..1c9f7f6 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)

-- 


Reply via email to