Don't need to trigger layout update twice.

Set focus to the newly shown border.



SVN revision: 46311
This commit is contained in:
Christopher Michael 2010-02-19 14:45:10 +00:00
parent 2de25e35db
commit 448f5524d6
1 changed files with 4 additions and 8 deletions

View File

@ -202,20 +202,16 @@ _policy_border_show_below(E_Border *bd)
if ((bd->fullscreen) || (bd->need_fullscreen))
{
if (!b->visible)
e_border_show(b);
b->changes.visible = 1;
b->changed = 1;
if (!b->visible) e_border_show(b);
_policy_border_set_focus(b);
}
else
{
/* need to check x/y position */
if ((b->x == bd->x) && (b->y == bd->y))
{
if (!b->visible)
e_border_show(b);
b->changes.visible = 1;
b->changed = 1;
if (!b->visible) e_border_show(b);
_policy_border_set_focus(b);
}
}
}