Bug 559803

Summary: WM_ENTERMENULOOP called without WM_EXITMENULOOP
Product: [Eclipse Project] Platform Reporter: Matthias Bank <matthias.bank>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: paul-eclipse
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

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.