fixed treating already handled click on gadget as "leave screen" event
authorHolger Schemel <info@artsoft.org>
Wed, 23 Feb 2022 23:23:59 +0000 (00:23 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 23 Feb 2022 23:24:04 +0000 (00:24 +0100)
commite393d823c775211475df75fc855dea7344a71aa9
tree82b2f65adec1fa9adab4dfa7e81128facdc08f02
parent9a038e0ab575eb3556118e88158e5a5a4a977eec
fixed treating already handled click on gadget as "leave screen" event

This bug occured when clicking on the "previous level" or "next level"
gadget on the high score screen, followed by an empty scores screen,
which itself treats any button click as a "leave screen" event, thus
handling that mouse click twice, which results in that empty scores
screen to be immediately left (although it should wait for *another*
button click here, of course). This fix makes sure that button clicks
on gadgets that were already handled are not immediately handled again.
src/screens.c