Fix button press behaviours. On LeaveNotify, make the button no longer pressed....
authorDana Jansens <danakj@orodu.net>
Mon, 18 Feb 2008 22:12:38 +0000 (17:12 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 19 Feb 2008 01:42:35 +0000 (20:42 -0500)
commit041d17373e046b5ee6667b10c1492bb518bac097
tree04d8d2f043aa082b556b1b91cc24bda1162c2b28
parent5bfa48dcffec3b00d119d851cb2427a43f80aa7b
Fix button press behaviours.  On LeaveNotify, make the button no longer pressed.  On MotionNotify, only make it hovered if no button is pressed down.  On EnterNotify, make it hovered or pressed as appropriate.

This fixes case where you left-click and hold on a button, then right click to open the menu - this used to leave the button in a pressed state.
openbox/event.c