X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.c;h=0c16ae3e3fc360d480097f85f381ef65a541a38d;hb=7581b58aa3fe8d11051444b4d3edb3f7a60ad1e8;hp=f9593777d0c6bd1516c7dd1c07c3689991a5f396;hpb=a5cfbd4adca58f1c71a315d8afb2de82bf8ec6f3;p=chaz%2Ftint2 diff --git a/src/panel.c b/src/panel.c index f959377..0c16ae3 100644 --- a/src/panel.c +++ b/src/panel.c @@ -699,16 +699,10 @@ Area* click_area(Panel *panel, int x, int y) GSList* it = result->list; while (it) { Area* a = it->data; - if (panel_horizontal) { - if (a->on_screen && x >= a->posx && x <= (a->posx + a->width)) { - new_result = a; - break; - } - } else { - if (a->on_screen && y >= a->posy && y <= (a->posy + a->height)) { - new_result = a; - break; - } + if (a->on_screen && x >= a->posx && x <= (a->posx + a->width) + && y >= a->posy && y <= (a->posy + a->height)) { + new_result = a; + break; } it = it->next; }