Changed launcher to use Areas for each icon; this allows showing tooltips
git-svn-id: http://tint2.googlecode.com/svn/trunk@631 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi@interfete-web-club.com
parent
f71967bbca
commit
47ce616991
14
src/panel.c
14
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user