Avoid buttons getting "stuck down":
commitcaea166e0f27c5aa8a0caf4bd605f8ca78de98c1
authorneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Wed, 13 Jan 2016 21:24:03 +0000 (13 21:24 +0000)
committerneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Wed, 13 Jan 2016 21:24:03 +0000 (13 21:24 +0000)
treeb368d209624bab9048d4658c0d40d7f58576967e
parent9845d2e0a5d23969ceca50e1c083064f793b998b
Avoid buttons getting "stuck down":
 - Simulate mouse button release if the area becomes disabled.
 - When a RelVerify button is pressed, set MUIA_Selected and MUIA_Pressed
   attributes on the button before (not after) updating MUIA_Timer, and
   check if the button has become disabled as a result of notifications
   on those attribute changes before starting the timer that runs while the
   button is pressed. An example of the problem this change solves was seen
   in the OpenURL prefs utility, where the buttons to move the positions of
   items within a list could get stuck in strange states, leading to items
   continuing to move after the mouse button had been released.
 - Refactoring: incorporated duplicated event-handler related code into
   release_button().

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@51273 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/libs/muimaster/classes/area.c