forked from enlightenment/enlightenment
sloppy focus does not require pointer warping
ticket #daniel SVN revision: 75608
This commit is contained in:
parent
fe79aead48
commit
177e3276ed
|
@ -2088,14 +2088,7 @@ e_border_focus_set_with_pointer(E_Border *bd)
|
||||||
if (e_config->focus_policy == E_FOCUS_CLICK) return;
|
if (e_config->focus_policy == E_FOCUS_CLICK) return;
|
||||||
if (!bd->visible) return;
|
if (!bd->visible) return;
|
||||||
|
|
||||||
if (e_config->focus_policy == E_FOCUS_SLOPPY)
|
if (e_config->focus_policy == E_FOCUS_MOUSE)
|
||||||
{
|
|
||||||
if (!e_border_under_pointer_get(bd->desk, bd))
|
|
||||||
{
|
|
||||||
e_border_pointer_warp_to_center(bd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
e_border_pointer_warp_to_center(bd);
|
e_border_pointer_warp_to_center(bd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,7 +337,7 @@ e_winlist_hide(void)
|
||||||
e_border_focus_set(bd, 1, 1);
|
e_border_focus_set(bd, 1, 1);
|
||||||
e_border_focus_latest_set(bd);
|
e_border_focus_latest_set(bd);
|
||||||
}
|
}
|
||||||
if ((e_config->focus_policy != E_FOCUS_CLICK) ||
|
if ((e_config->focus_policy == E_FOCUS_MOUSE) ||
|
||||||
(e_config->winlist_warp_at_end) ||
|
(e_config->winlist_warp_at_end) ||
|
||||||
(e_config->winlist_warp_while_selecting))
|
(e_config->winlist_warp_while_selecting))
|
||||||
ecore_x_pointer_warp(bd->zone->container->win, _warp_to_x, _warp_to_y);
|
ecore_x_pointer_warp(bd->zone->container->win, _warp_to_x, _warp_to_y);
|
||||||
|
|
Loading…
Reference in New Issue