Bug 36128 - SWT opens borderless shell on Linux
Summary: SWT opens borderless shell on Linux
Status: RESOLVED DUPLICATE of bug 23980
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-07 09:32 EDT by Oyvind Harboe CLA
Modified: 2003-04-14 15:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oyvind Harboe CLA 2003-04-07 09:32:58 EDT
Consider the program below.

- Under Windows, I get all the expected trimmings
- Under Linux, I get no trimmings, i.e. there is no close, title bar or 
minimize button

Happens w/SWT 2.1(2133) under RedHat 8.0

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StackLayout;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Shell;

public class Application
{
	Display display;
	Shell testImage;
	Shell gui;

	private void runGUI(Display display)
	{
		gui = new Shell(display, 
SWT.ON_TOP|SWT.CLOSE|SWT.TITLE|SWT.MIN);

		gui.setText("lkasjdf");

		gui.setLayout(new GridLayout());

		this.display = display;
		testImage = new Shell(display, SWT.NONE);
		testImage.setMaximized(true);
		testImage.open();
		
		gui.pack();
		gui.open();

		for (;;)
		{
			if (!display.readAndDispatch())
				display.sleep();

			if (testImage.isDisposed() || gui.isDisposed())
				break;
		}

		testImage.dispose();
		gui.dispose();

		display.dispose();
	}
	
	private StackLayout stackLayout;
	private Group patternsGroup;

	
	public static void main(String[] args)
	{

		/* returns when the application quits. */
		Display display;
		display = new Display();

		Application app = new Application ();
		app.runGUI(display);

		display.dispose();

		
	}
}
Comment 1 Steve Northover CLA 2003-04-14 15:22:15 EDT

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