fix another missing ptr warp bug on alt-tab.

SVN revision: 75694
This commit is contained in:
Carsten Haitzler 2012-08-25 04:17:46 +00:00
parent 777232b4d6
commit d69846caa0
1 changed files with 16 additions and 1 deletions

View File

@ -336,7 +336,22 @@ e_winlist_hide(void)
if ((e_config->focus_policy != E_FOCUS_CLICK) ||
(e_config->winlist_warp_at_end) ||
(e_config->winlist_warp_while_selecting))
ecore_x_pointer_warp(bd->zone->container->win, _warp_to_x, _warp_to_y);
{
_warp_to_x = bd->x + (bd->w / 2);
if (_warp_to_x < (bd->zone->x + 1))
_warp_to_x = bd->zone->x +
((bd->x + bd->w - bd->zone->x) / 2);
else if (_warp_to_x >= (bd->zone->x + bd->zone->w - 1))
_warp_to_x = (bd->zone->x + bd->zone->w + bd->x) / 2;
_warp_to_y = bd->y + (bd->h / 2);
if (_warp_to_y < (bd->zone->y + 1))
_warp_to_y = bd->zone->y +
((bd->y + bd->h - bd->zone->y) / 2);
else if (_warp_to_y >= (bd->zone->y + bd->zone->h - 1))
_warp_to_y = (bd->zone->y + bd->zone->h + bd->y) / 2;
ecore_x_pointer_warp(bd->zone->container->win, _warp_to_x, _warp_to_y);
}
e_object_unref(E_OBJECT(bd));
}