GTK2: SpeedButton freezes (need extra click) after close popup menu without choosing any popup menu item (Fix 1).
Original Reporter info from Mantis: and3md @and3md
-
Reporter name: Andrzej Kilijanski
Original Reporter info from Mantis: and3md @and3md
- Reporter name: Andrzej Kilijanski
Description:
I found more cases where the controls freeze after using the popup menu. This patch is a rework of https://bugs.freepascal.org/view.php?id=38345 and https://bugs.freepascal.org/view.php?id=35094 to handle new cases. I think this patch also fixes rare freezes of the entire window or listView when a popup menu is closed. But I have no proof of it - it just stopped happening to me.
I divided the whole solution into two parts to facilitate review/application of patch - this part fixes the popup menu created in Lazarus.
In the sample program this part (fix 1) will fix the controls with PopupMenu added in Lazarus and the case of opening the second form (modal or not).
Steps to reproduce:
The easiest way to cause the controls to freeze is:
- Add SpeedButton to the Form
- Add a ListView to the Form
- Add PopupMenu to ListView (add some menu items)
- After run click right on ListView and then click on the form to hide the popup menu
- At this point, the SpeedButton will be inactive
Mantis conversion info:
- Mantis ID: 38401
- OS: Linux Mint
- OS Build: 20.1
- Platform: amd64
- Version: 2.1 (SVN)
- Fixed in revision: r64430 (#5a0bf2ed)