Hide/Show QP borders when appropriate.

If we move the indicator window in policy, then send qp_pos_update message
so quickpanel is in the correct position.



SVN revision: 45473
This commit is contained in:
Christopher Michael 2010-01-22 23:28:03 +00:00
parent ada28c01eb
commit 8ca7469480
2 changed files with 15 additions and 6 deletions

View File

@ -294,11 +294,14 @@ _e_quickpanel_cb_animate(void *data)
if (bd->fx.y != (qp->adjust + pbh))
e_border_fx_offset(bd, 0, (qp->adjust + pbh));
pbh += bd->h;
if (bd->fx.y > 0)
if (!bd->visible) _e_quickpanel_border_show(bd);
if (qp->visible)
if (!qp->visible)
{
if (bd->fx.y <= 0)
if (bd->fx.y > 0)
if (!bd->visible) _e_quickpanel_border_show(bd);
}
else
{
if (bd->fx.y <= 10)
if (bd->visible) _e_quickpanel_border_hide(bd);
}
}

View File

@ -125,7 +125,10 @@ _layout_zone_layout(E_Zone *zone)
if (!cfg_zone->mode.dual)
{
if ((bd->x != zone->x) || (bd->y != zone->y))
_zone_layout_border_move(bd, zone->x, zone->y);
{
_zone_layout_border_move(bd, zone->x, zone->y);
ecore_x_e_illume_quickpanel_position_update_send(bd->client.win);
}
}
else
{
@ -137,7 +140,10 @@ _layout_zone_layout(E_Zone *zone)
else
{
if ((bd->x != zone->x) || (bd->y != zone->y))
_zone_layout_border_move(bd, zone->x, zone->y);
{
_zone_layout_border_move(bd, zone->x, zone->y);
ecore_x_e_illume_quickpanel_position_update_send(bd->client.win);
}
}
}
}