fix focus bug where changing desks would not properly unset focus in all cases

ticket #1519


SVN revision: 76902
This commit is contained in:
Mike Blumenkrantz 2012-09-20 09:26:04 +00:00
parent 1adb477ad1
commit 008c555ad2
1 changed files with 8 additions and 1 deletions

View File

@ -2246,7 +2246,14 @@ e_border_focus_set(E_Border *bd,
if (bd == focusing) focusing = NULL;
if ((bd->focused) &&
((bd->desk == e_desk_current_get(bd->zone)) || (bd->sticky)))
(
(bd->desk == e_desk_current_get(bd->zone)) ||
(
(bd->desk != e_desk_current_get(bd->zone)) &&
(bd->zone == e_util_zone_current_get(e_manager_current_get()))
) ||
(bd->sticky)
))
{
Eina_Bool wasfocused = EINA_FALSE;
bd_unfocus = bd;