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

Bug 34239

Summary: [Widgets] Multi-monitor: negative coordinates issues
Product: [Eclipse Project] Platform Reporter: Christophe Cornu <christophe.cornu+eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: normal    
Priority: P3 CC: andre.malenfant, michschn, snorthov
Version: 2.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows All   
Whiteboard: stalebug

Description Christophe Cornu CLA 2003-03-09 19:19:46 EST
From André Malenfant 2003-02-13 11:57 in bug 19824

Regarding this issue: the only problem i have is that when i restart eclipse, 
the window is not positioned as it was closed. My second monitor is left to the 
primary so coordinates are negative for the second monitor. Multi-monitor 
support is ok if you stretch the window over the two screens in minimize mode 
(windows). The only anoying thisg is to reposition the window manually each 
time is start Eclipse.
Comment 1 Christophe Cornu CLA 2003-03-09 19:34:18 EST
Andre,

Can you run the code snippet below and tell us if the Window correctly shows up 
on your left monitor (coordinate x = -200)? It should...

Thank you,
Chris

import org.eclipse.swt.widgets.*;

public class PR34239 {

	public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.setBounds(-200, 50, 100, 100);
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
	}
}
Comment 2 André Malenfant CLA 2003-03-10 09:54:19 EST
I ran the class and the window did appear at coord 0, 50). I tried different 
values and it appears that the negative coordinates are interpreted as 0.
Comment 3 Steve Northover CLA 2006-05-12 17:55:59 EDT
FH to retest this on multi-monitor to verify that the window is coming up in the right place for SWT.
Comment 4 Felipe Heidrich CLA 2009-08-17 16:46:57 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 5 Leo Ufimtsev CLA 2017-08-03 12:33:47 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 6 Eclipse Genie CLA 2020-05-07 09:45:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.