X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.c;h=49ae218e6422ffb02799e0f5a926211a31680c6b;hb=7f435e3a3592613e718eac626917d9ae32e37bcf;hp=ee531677805e381d5ba39fa9299630ca1c1e7d4b;hpb=90a65490dff94bf80d13accae4f61b0431960dba;p=chaz%2Ftint2 diff --git a/src/panel.c b/src/panel.c index ee53167..49ae218 100644 --- a/src/panel.c +++ b/src/panel.c @@ -688,8 +688,8 @@ LauncherIcon *click_launcher_icon (Panel *panel, int x, int y) LauncherIcon *icon; for (l0 = launcher->list_icons; l0 ; l0 = l0->next) { icon = l0->data; - if (x >= (launcher->area.posx + icon->x) && x <= (launcher->area.posx + icon->x + icon->width) && - y >= (launcher->area.posy + icon->y) && y <= (launcher->area.posy + icon->y + icon->height)) { + if (x >= (launcher->area.posx + icon->x) && x <= (launcher->area.posx + icon->x + icon->icon_size) && + y >= (launcher->area.posy + icon->y) && y <= (launcher->area.posy + icon->y + icon->icon_size)) { //printf("Hit rect x=%d y=%d xmax=%d ymax=%d\n", launcher->area.posx + icon->x, launcher->area.posy + icon->y, launcher->area.posx + icon->x + icon->width, launcher->area.posy + icon->y + icon->height); return icon; }