cedric pushed a commit to branch enlightenment-0.17.

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

commit 0141251d50bea6805ba3bbc26085c98cf9a5d073
Author: Mike Blumenkrantz <m.blumenk...@samsung.com>
Date:   Tue Apr 23 16:26:19 2013 +0100

    ignore window focus in events on iconic borders; these are guaranteed to be 
wrong
---
 src/bin/e_border.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 1a02225..41f788d 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -6031,6 +6031,10 @@ _e_border_cb_window_focus_in(void *data  __UNUSED__,
    e = ev;
    bd = e_border_find_by_client_window(e->win);
    if (!bd) return ECORE_CALLBACK_PASS_ON;
+
+   /* block refocus attempts on iconic windows
+    * these result from iconifying a window during a grab */
+   if (bd->iconic) return ECORE_CALLBACK_RENEW;
 #ifdef INOUTDEBUG_FOCUS
    {
       time_t t;

-- 


Reply via email to