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

Bug 491494

Summary: in case of full screen shell none of the dialog appear eg. not even context menu
Product: [Eclipse Project] Platform Reporter: Levente Farkas <lfarkas>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 4.5.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Levente Farkas CLA 2016-04-12 05:14:27 EDT
here is a very simple example where the problem is very easily recognizable.

package net.vidux.test;

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;

public class SWTTestFullScreenDialog {

	public static void main(String[] args) {
		Display display = new Display();
		final Shell shell = new Shell(display);
		shell.setLayout(new GridLayout());
		Button openDialog = new Button(shell, SWT.NONE);
		openDialog.setText("Open dialog");
		openDialog.addListener(SWT.Selection, new Listener() {
			public void handleEvent(Event arg0) {
				MessageDialog.openInformation(shell, "Info Title", "Info message");
			}
		});
		shell.open();
		shell.setFullScreen(true);
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
}
Comment 1 Eric Williams CLA 2018-06-15 15:26:12 EDT
I cannot reproduce this issue on GTK3.22/4.8 M7/Fedora 28.