mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 04:27:43 +02:00
eeeshow/gui-aoi.c (aoi_down): don't accept click on non-clickable AoI
This commit is contained in:
parent
b67f6b9a96
commit
0d975a57d0
@ -146,6 +146,10 @@ bool aoi_down(const struct aoi *aois, int x, int y)
|
||||
clicked = find_aoi(aois, x, y);
|
||||
if (!clicked)
|
||||
return 0;
|
||||
if (!clicked->click) {
|
||||
clicked = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
clicked_x = x;
|
||||
clicked_y = y;
|
||||
|
Loading…
Reference in New Issue
Block a user