cedric pushed a commit to branch enlightenment-0.17.

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

commit ddffb8e5d91624d9feaaaa5a55c8fc282ee9de63
Author: Mike Blumenkrantz <m.blumenk...@samsung.com>
Date:   Wed May 22 11:06:31 2013 +0100

    remove old x focus hack for mouse in
---
 src/bin/e_focus.c | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/src/bin/e_focus.c b/src/bin/e_focus.c
index a14988c..0be99a8 100644
--- a/src/bin/e_focus.c
+++ b/src/bin/e_focus.c
@@ -55,26 +55,13 @@ e_focus_event_mouse_out(E_Border *bd)
 {
    if (e_config->focus_policy == E_FOCUS_MOUSE)
      {
-        /* FIXME: this is such a hack. its a big hack around x's async events
-         * as we dont know always exactly what action causes what event
-         * so by waiting more than 0.2 secs before reverting focus to nothing
-         * since we entered root, we are ignoring mouse in's on the root
-         * container for a bit after the mosue may have entered it
-         */
-        if ((ecore_loop_time_get() - e_grabinput_last_focus_time_get()) > 0.2)
+        if (!bd->lock_focus_in)
           {
-             if (!bd->lock_focus_in)
-               {
-                  if (bd->focused)
-                    e_border_focus_set(bd, 0, 1);
-               }
+             if (bd->focused)
+               e_border_focus_set(bd, 0, 1);
           }
      }
-   if (bd->raise_timer)
-     {
-        ecore_timer_del(bd->raise_timer);
-        bd->raise_timer = NULL;
-     }
+   if (bd->raise_timer) ecore_timer_del(bd->raise_timer);
 }
 
 EAPI void

-- 


Reply via email to