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