summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@enlightenment.org>2013-11-20 13:17:42 -0500
committerMike Blumenkrantz <zmike@enlightenment.org>2013-11-20 15:32:30 -0500
commitd17ab08019eb1abe27c39d5201585656564ffe4b (patch)
tree4cd5c25e75a2fad1b7190400cb9defaed8538b17
parent12ce306457103cf588d3290458c3164484136f29 (diff)
block mouse down focus event focus setting on already-focused windows
fixes steam menus with click focus, which previously would close immediately after opening when they lost focus
-rw-r--r--src/bin/e_focus.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/e_focus.c b/src/bin/e_focus.c
index 24cc3e9d5..28fb473c2 100644
--- a/src/bin/e_focus.c
+++ b/src/bin/e_focus.c
@@ -63,10 +63,13 @@ e_focus_event_mouse_out(E_Border *bd)
63EAPI void 63EAPI void
64e_focus_event_mouse_down(E_Border *bd) 64e_focus_event_mouse_down(E_Border *bd)
65{ 65{
66 if (e_config->focus_policy == E_FOCUS_CLICK) 66 if (!bd->focused)
67 e_border_focus_set(bd, 1, 1); 67 {
68 else if (e_config->always_click_to_focus) 68 if (e_config->focus_policy == E_FOCUS_CLICK)
69 e_border_focus_set(bd, 1, 1); 69 e_border_focus_set(bd, 1, 1);
70 else if (e_config->always_click_to_focus)
71 e_border_focus_set(bd, 1, 1);
72 }
70 if (e_config->always_click_to_raise) 73 if (e_config->always_click_to_raise)
71 { 74 {
72 if (!bd->lock_user_stacking) 75 if (!bd->lock_user_stacking)