summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-23 16:26:19 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-08-17 18:10:13 +0200
commit0141251d50bea6805ba3bbc26085c98cf9a5d073 (patch)
treea87c21b0cc4358711cb52f368f843a3f7e923226
parent45076fc6baa4a6032ae5d98845a63f2051e00a96 (diff)
downloadenlightenment-0141251d50bea6805ba3bbc26085c98cf9a5d073.tar.gz
ignore window focus in events on iconic borders; these are guaranteed to be wrong
-rw-r--r--src/bin/e_border.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 1a02225fa6..41f788d790 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;