discomfitor pushed a commit to branch master.
commit ae8d726c5abc7bc2cdb44a6d7747b6e188222908
Author: Mike Blumenkrantz <[email protected]>
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 6eef63b..565063e 100644
--- a/src/bin/e_focus.c
+++ b/src/bin/e_focus.c
@@ -54,26 +54,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;
- }
+ E_FREE_FUNC(bd->raise_timer, ecore_timer_del);
}
EAPI void
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may