discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=09efa2665354f85fac81ba4b94e452e7c385f88b

commit 09efa2665354f85fac81ba4b94e452e7c385f88b
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Dec 10 13:37:52 2015 -0500

    set wayland new client focus based on accepts_focus and !override
    
    seems to resolve some cases where focus is not applied to new clients
---
 src/bin/e_comp_wl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 1223437..69ee96c 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1155,7 +1155,10 @@ _e_comp_wl_surface_state_commit(E_Client *ec, 
E_Comp_Wl_Surface_State *state)
           }
 
         if (ec->new_client)
-          ec->placed = placed;
+          {
+             ec->placed = placed;
+             ec->want_focus = ec->icccm.accepts_focus && (!ec->override);
+          }
         else if ((first) && (ec->placed) && (!ec->internal) && (!ec->override))
           {
              ec->x = ec->y = 0;

-- 


Reply via email to