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

Bug 493846

Summary: Dialog boxes get incorrect Z-order when running Eclipse full-screen on Cinnamon
Product: [Eclipse Project] Platform Reporter: Stefan Xenos <sxenos>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: arunkumar.thondapu, psuzzi
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stefan Xenos CLA 2016-05-17 15:53:29 EDT
Running Eclipse GTK build 20160505-1310 on Ubuntu. Problem is reproducible with the Cinnamon desktop but not with the Ubuntu default desktop manager (unity).

Steps to reproduce:
- Restart in Cinnamon.
- Start Eclipse.
- Hit Alt-F11 to go full-screen.
- Close the "You've gone fullscreen" popup, but don't click on the main application window.
- Press ctrl-shift-r.

Observed: Eclipse seems to lock up until you press "esc", since the modal Open Resource dialog has opened but is obscured by the main workbench window.

Expected: The newly-opened modal dialog opens on top of the Eclipse window.

I looked at the constructor of OpenResourceDialog in a debugger and can confirm that the parentShell pointer was pointing at the workbench window and was not null.
Comment 1 Stefan Xenos CLA 2016-05-17 16:34:29 EDT
The fact that I don't see this happen on other window managers makes me suspect a Cinnamon problem. Cinnamon seems to do some strange things with the z-order when one of the windows is fullscreen. 

For example:
- Make window A fullscreen.
- Drag non-fullscreen window B overtop of window A.
- Switch to window C.

Notice that window B is now hidden behind window A.

I suspect that Cinnamon is treating fullscreen windows as though they have the ON_TOP property, and that is likely the cause of this Eclipse issue.
Comment 2 Arun Thondapu CLA 2016-05-18 05:37:11 EDT
Probably not specific to Cinnamon, see bug 493685 for the same issue reported on Arch Linux with GNOME Shell.
Comment 3 Arun Thondapu CLA 2016-05-18 05:43:48 EDT
Stefan, should we mark this as duplicate of bug 493685 and capture your comments there? The problem seems to be the same though its happening in different environments...

Which version of Ubuntu are you on? 16.04?
Comment 4 Stefan Xenos CLA 2016-05-18 09:45:37 EDT
> Which version of Ubuntu are you on? 16.04?

Ubuntu 14.04 LTS

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