discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9f9dbb3b5eb75037f54fbe3c0e2b816251b6adbc

commit 9f9dbb3b5eb75037f54fbe3c0e2b816251b6adbc
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Apr 1 06:56:47 2016 -0400

    reapply client focus after input grab, only handle focus for wayland 
compositors
    
    this was looking too weird
    
    ref 4a73e9f29ac5a3bafdff8d05c2f544ab47d4000b
---
 src/bin/e_comp.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 15a6161..0d78bda 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -1648,11 +1648,22 @@ e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd)
    if ((e_comp->input_mouse_grabs && e_comp->input_key_grabs) ||
        e_grabinput_get(mwin, 0, kwin))
      {
-        if (e_client_focused_get())
-          evas_object_focus_set(e_client_focused_get()->frame, 0);
+        E_Client *ec = e_client_focused_get();
+
+        if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
+          {
+             if (ec)
+               evas_object_focus_set(ec->frame, 0);
+          }
+
         ret = EINA_TRUE;
         e_comp->input_mouse_grabs += mouse;
         e_comp->input_key_grabs += kbd;
+        if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
+          {
+             if (ec)
+               evas_object_focus_set(ec->frame, 1);
+          }
      }
    return ret;
 }

-- 


Reply via email to