cedric pushed a commit to branch enlightenment-0.17. http://git.enlightenment.org/core/enlightenment.git/commit/?id=ceb83b592f30a13a019aef9c8a25fbd34d19fe08
commit ceb83b592f30a13a019aef9c8a25fbd34d19fe08 Author: Mike Blumenkrantz <m.blumenk...@samsung.com> Date: Thu Sep 5 13:44:34 2013 +0100 first we check focus model WITHOUT also applying automatically applied raise option, then we check focus option, THEN we check raise option --- src/bin/e_focus.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/bin/e_focus.c b/src/bin/e_focus.c index 8f5c84d..6901e89 100644 --- a/src/bin/e_focus.c +++ b/src/bin/e_focus.c @@ -81,15 +81,9 @@ EAPI void e_focus_event_mouse_down(E_Border *bd) { if (e_config->focus_policy == E_FOCUS_CLICK) - { - e_border_focus_set(bd, 1, 1); - - if (!bd->lock_user_stacking) - { - if (e_config->border_raise_on_focus) - e_border_raise(bd); - } - } + e_border_focus_set(bd, 1, 1); + else if (e_config->always_click_to_focus) + e_border_focus_set(bd, 1, 1); else if (e_config->always_click_to_raise) { if (!bd->lock_user_stacking) @@ -98,10 +92,6 @@ e_focus_event_mouse_down(E_Border *bd) e_border_raise(bd); } } - else if (e_config->always_click_to_focus) - { - e_border_focus_set(bd, 1, 1); - } } EAPI void --