]> Dogcows Code - chaz/tint2/blobdiff - src/panel.c
Changed launcher to use Areas for each icon; this allows showing tooltips
[chaz/tint2] / src / panel.c
index f9593777d0c6bd1516c7dd1c07c3689991a5f396..0c16ae3e3fc360d480097f85f381ef65a541a38d 100644 (file)
@@ -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;
                }
This page took 0.025674 seconds and 4 git commands to generate.