Bug 566446

Summary: Missing busy cursor when called from menu item outside shells borders
Product: [Eclipse Project] Platform Reporter: Heinz Weber <heinz.weber>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
pic of bug situation none

Description Heinz Weber CLA 2020-08-27 06:50:03 EDT
Created attachment 283977 [details]
pic of bug situation

I discovered a bug concerning showing busy cursors. It occurs when SWT.CURSOR_WAIT is set for a shell from a SelectionListener (widgetSelected()) of a MenuItem. The problem only exists if the MenuItem is part of a big popup menu and graphically outside the borders of the shell. 

When busy cursor is initiated by a menu item inside the shells border any behavior is correct. I get a normal cursor outside and a busy cursor inside shells borders.

But if busy cursor is initiated by a menu item outside shells borders (just graphically, of course the popup menu is assigned to a control of the shell), I see no busy cursor for at least 5 seconds for cursor inside shells borders. After about 5 seonds it´s also not the busy cursor set by the selection listener, but a system busy cursor shown by appendix "not responding" inside the title bar when clicking inside shell borders. 

Experimenting a little bit, I determined dependency of the cursor position when clicking, not position of the menu item. So if the menu item overlaps the shell borders you can get both situations depending on the cursor inside or outside shell borders.

It would be a bad workaround to use only small popups never blowing up shell borders ;)