Bug 559803 - WM_ENTERMENULOOP called without WM_EXITMENULOOP
Summary: WM_ENTERMENULOOP called without WM_EXITMENULOOP
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-03 20:24 EST by Matthias Bank CLA
Modified: 2020-02-04 02:03 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Bank CLA 2020-02-03 20:24:09 EST
When clicking in a menu, Menu#_setVisible calls Control#WM_ENTERMENULOOP via OS.TrackPopupMenu (handle, flags, nX, nY, 0, hwndParent, null) (line 253). I observed WM_EXITMENULOOP to be called e.g. when focusing another UI element. But if I close the shell immediatly after clicking in a menu, WM_EXITMENULOOP is not called.

That causes the Display#externalEventLoop boolean not be set to 'false' after the menu loop.
Comment 1 Paul Pazderski CLA 2020-02-04 02:03:05 EST
Can you give an example Snippet to reproduce the issue? I tried but could not find the right combination for the described behavior.