Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 536219

Summary: [multi monitor][linux] Main menu drop-downs "drop" upwards/are almost invisible
Product: [Eclipse Project] Platform Reporter: Andreas Sewe <sewe>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 4.8   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=536218
Whiteboard:
Attachments:
Description Flags
Screenshot illustrating the situation none

Description Andreas Sewe CLA 2018-06-24 15:30:30 EDT
Created attachment 274600 [details]
Screenshot illustrating the situation

This bug occurs in the same situation/multi-monitor setup as Bug 526218, but has probably a different fix.

While testing the Eclipse IDE for Java Developers Photon RC4, I noticed that the workbench's main menu "drop" upwards. The attached screenshot illustrates what I mean by this:

I have just clicked on "Navigate". The menu is now rendered above the workbench's main menu bar overlapping the Gnome "Activities" bar. Also, and more annoyingly, it doesn't spill over into the top screen. Hence, the menu's height is so small that no menu items are shown. The menu is effectively unusable.

Also note the "BUG" log messages in the terminal. They show up whenever I click on one of the main menu items like "Navigate" or "File".

I am using Ubuntu 18.04 using the "Ubuntu" theme with X11. All three monitors (top left, top right, bottom right) have a standard 1920 x 1080 resolution with 100% zoom factor. The most notable thing is that the *bottom right* monitor is the *primary* monitor, i.e., it has the Gnome menu bar and Ubuntu dock.
Comment 1 Andreas Sewe CLA 2018-06-24 15:37:04 EDT
Also, all context menus show up at the top of the bottom right screen (where the Eclipse workbench windows is located) and are not very tall, showing only one menu item at the same time.
Comment 2 Andreas Sewe CLA 2018-06-24 15:45:07 EDT
If I make the top right (or left) menu the primary monitor, i.e., the one with the Gnome "Activities" bar, the the menus are rendered exactly as the should be, regardless of which of the three monitors the workbench window is one.

It looks like the SWT code makes the assumption somewhere that the primary monitor is always in the top row.
Comment 3 Eric Williams CLA 2018-06-24 17:37:32 EDT
Did this bug reproduce with any other 4.8 builds (i.e. M7)? What about 4.7.3?
Comment 4 Eric Williams CLA 2018-06-25 11:51:10 EDT

*** This bug has been marked as a duplicate of bug 536218 ***