discomfitor pushed a commit to branch master.

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

commit def3ac82ae6d04e095d556c7b6c22e5eec7b7a7e
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Mar 20 15:13:25 2015 -0400

    wayland compositor: Remove focus_update from compositor client data
    
    Summary:
    The only use for this was sending keyboard enter events on first commit
    after a focus during app startup, and this has proven to be unreliable.
    
    NOTE: Focus before an app requests the keyboard global is now broken and
    will be fixed in a following patch.
    
    Reviewers: zmike, devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2205
---
 src/bin/e_comp_wl.c | 7 -------
 src/bin/e_comp_wl.h | 1 -
 2 files changed, 8 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index b50dde3..c0b206b 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -428,7 +428,6 @@ _e_comp_wl_client_focus(E_Client *ec)
    wl_array_for_each(k, &e_comp->wl_comp_data->kbd.keys)
      e_comp_wl_input_keyboard_state_update(e_comp->wl_comp_data, *k, 
EINA_TRUE);
 
-   ec->comp_data->focus_update = 1;
    if (!ec->comp_data->surface) return;
 
    if (!eina_list_count(e_comp->wl_comp_data->kbd.resources)) return;
@@ -450,7 +449,6 @@ _e_comp_wl_client_focus(E_Client *ec)
                                    e_comp->wl_comp_data->kbd.mod_locked,
                                    e_comp->wl_comp_data->kbd.mod_group);
 
-        ec->comp_data->focus_update = 0;
      }
 }
 
@@ -498,8 +496,6 @@ _e_comp_wl_evas_cb_focus_out(void *data, Evas *evas 
EINA_UNUSED, Evas_Object *ob
 
    if (!ec->comp_data->surface) return;
 
-   ec->comp_data->focus_update = 0;
-
    if (!eina_list_count(cdata->kbd.resources)) return;
 
    /* send keyboard_leave to all keyboard resources */
@@ -2699,9 +2695,6 @@ e_comp_wl_surface_commit(E_Client *ec)
                }
           }
      }
-   if (ec->comp_data->focus_update)
-     _e_comp_wl_client_focus(ec);
-
    return EINA_TRUE;
 }
 
diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h
index 812285f..686de07 100644
--- a/src/bin/e_comp_wl.h
+++ b/src/bin/e_comp_wl.h
@@ -262,7 +262,6 @@ struct _E_Comp_Wl_Client_Data
    Eina_Bool first_damage : 1;
    Eina_Bool set_win_type : 1;
    Eina_Bool frame_update : 1;
-   Eina_Bool focus_update : 1;
 };
 
 struct _E_Comp_Wl_Output

-- 


Reply via email to