forked from enlightenment/enlightenment
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
This commit is contained in:
parent
12ce306457
commit
d17ab08019
|
@ -63,10 +63,13 @@ e_focus_event_mouse_out(E_Border *bd)
|
||||||
EAPI void
|
EAPI void
|
||||||
e_focus_event_mouse_down(E_Border *bd)
|
e_focus_event_mouse_down(E_Border *bd)
|
||||||
{
|
{
|
||||||
if (e_config->focus_policy == E_FOCUS_CLICK)
|
if (!bd->focused)
|
||||||
e_border_focus_set(bd, 1, 1);
|
{
|
||||||
else if (e_config->always_click_to_focus)
|
if (e_config->focus_policy == E_FOCUS_CLICK)
|
||||||
e_border_focus_set(bd, 1, 1);
|
e_border_focus_set(bd, 1, 1);
|
||||||
|
else if (e_config->always_click_to_focus)
|
||||||
|
e_border_focus_set(bd, 1, 1);
|
||||||
|
}
|
||||||
if (e_config->always_click_to_raise)
|
if (e_config->always_click_to_raise)
|
||||||
{
|
{
|
||||||
if (!bd->lock_user_stacking)
|
if (!bd->lock_user_stacking)
|
||||||
|
|
Loading…
Reference in New Issue