Status: Use InfoBar* instead of win in StatusMouse struct

This commit is contained in:
Martin Duquesnoy
2011-08-01 23:26:51 +02:00
parent 8958dbfe70
commit 39080f9952
5 changed files with 27 additions and 26 deletions

View File

@@ -161,7 +161,7 @@ buttonpress(XEvent *e)
/* Status mouse bindings */
SLIST_FOREACH(sm, &smhead, next)
if(sm->win == ev->window && ev->button == sm->button)
if(sm->infobar->bar->win == ev->window && ev->button == sm->button)
if(ev->x >= sm->area.x && ev->x <= sm->area.x + sm->area.width
&& ev->y >= sm->area.y && ev->y <= sm->area.y + sm->area.height)
if(sm->func)