discomfitor pushed a commit to branch enlightenment-0.20.

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

commit ab0d5de40c5257f74b75db1d974da7b941646208
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 59a2132..d7eb173 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1170,7 +1170,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