Move quickpanel click window according to position of indicator so that

outside clicks work correctly when indicator is moved.



SVN revision: 47939
This commit is contained in:
Christopher Michael 2010-04-11 21:12:49 +00:00
parent ef52d54922
commit 224fcc061a
1 changed files with 5 additions and 3 deletions

View File

@ -88,7 +88,7 @@ void
e_mod_quickpanel_show(E_Illume_Quickpanel *qp) e_mod_quickpanel_show(E_Illume_Quickpanel *qp)
{ {
E_Illume_Config_Zone *cz; E_Illume_Config_Zone *cz;
int duration; int duration, iy;
/* delete the animator if it exists */ /* delete the animator if it exists */
if (qp->animator) ecore_animator_del(qp->animator); if (qp->animator) ecore_animator_del(qp->animator);
@ -105,10 +105,12 @@ e_mod_quickpanel_show(E_Illume_Quickpanel *qp)
cz = e_illume_zone_config_get(qp->zone->id); cz = e_illume_zone_config_get(qp->zone->id);
qp->ih = cz->indicator.size; qp->ih = cz->indicator.size;
e_illume_border_indicator_pos_get(qp->zone, NULL, &iy);
ecore_x_window_move(qp->clickwin, qp->zone->x, ecore_x_window_move(qp->clickwin, qp->zone->x,
qp->zone->y + cz->indicator.size + qp->h); iy + cz->indicator.size + qp->h);
ecore_x_window_resize(qp->clickwin, qp->zone->w, ecore_x_window_resize(qp->clickwin, qp->zone->w,
qp->zone->h - (qp->zone->y + cz->indicator.size + qp->h)); qp->zone->h - (iy + cz->indicator.size + qp->h));
ecore_x_window_show(qp->clickwin); ecore_x_window_show(qp->clickwin);
/* check animation duration */ /* check animation duration */