aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-23 16:26:19 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-23 16:26:19 +0100
commit646943d897de514718becadba00f0499e717674c (patch)
tree519122ce0a7a6ad41e1cfc4626d931c32ab4edb6
parentblock refocus of currently focused window when applying desk focus (diff)
downloadenlightenment-646943d897de514718becadba00f0499e717674c.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 98c33f7ab..be5b7c26d 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -5850,6 +5850,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;