discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0df8c9457287b1b6d6e52f063434e970c2cc4371

commit 0df8c9457287b1b6d6e52f063434e970c2cc4371
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 b765298..32a43c4 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