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

Bug 493916

Summary: Tracker rectangle disappears when dragging out of parent shell
Product: [Eclipse Project] Platform Reporter: Stefan Xenos <sxenos>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: arunkumar.thondapu, ericwill, Lars.Vogel
Version: 4.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stefan Xenos CLA 2016-05-18 11:29:42 EDT
See bug 493477.

Try the following Snippet on GTK2.

public class Snippet23 {

public static void main (String [] args) {
	Display display = new Display ();
	final Shell shell = new Shell (display);
	shell.open ();
	shell.addListener (SWT.MouseDown, e -> {
		Tracker tracker = new Tracker (shell, SWT.NONE);
		tracker.setRectangles (new Rectangle [] {
			new Rectangle (e.x, e.y, 100, 100),
		});
		tracker.open ();
	});
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch ()) display.sleep ();
	}
	display.dispose ();
}
}

(This is taken directly from the SWT Snippets project)

Observed:
- The tracking rectangle does not paint once it is dragged out of its parent shell.

Expected:
- The tracking rectangle continues to paint as it is dragged.
Comment 1 Stefan Xenos CLA 2016-05-18 11:32:33 EDT
Note that this does not affect the Eclipse workbench since Eclipse uses invisible Trackers for its drag & drop.
Comment 2 Eric Williams CLA 2018-06-15 15:24:48 EDT
No longer reproducible, likely fixed with bug 498217.