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

Bug 320579

Summary: Tab shadows (from drag and drop) display on wrong monitor in Win7 x64 with "left-extended" desktop
Product: [Eclipse Project] Platform Reporter: Mark A. Ziesemer <bugs>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Screenshot attempting to re-order editor tabs
none
Screenshot attempting to move view tab none

Description Mark A. Ziesemer CLA 2010-07-21 21:37:33 EDT
Build Identifier: I20100608-0911

The easiest way to understand what is happening is probably to view the screenshots I will attach.

When moving tabs (e.g. an editor or the "Tasks" tab) using drag-and-drop with the mouse, the outline shadows are not always displaying on the correct monitor in a multi-monitor setup.  The shadows are appearing in the correct relative position in respect to the workspace, but on the wrong monitor - where there may not even be an Eclipse window otherwise displayed.

I've not been able to reproduce this on a single monitor.  I've also not been able to reproduce this in an extended desktop where there are no negative coordinates - I.E., the desktops are only extended below or to the right of the primary display, not above or to the left.

I've not been able to reproduce this under Windows XP.  I have been able to reproduce this on 2 different systems both running Windows 7, 64-bit.  Unfortunately, I don't currently have access to a 32-bit version of a Windows 7 system to help determine if this is a Windows 7 issue, or a 64-bit issue.  I have reproduced this with both a 32-bit JDK/Eclipse and a 64-bit JDK/Eclipse, so it isn't specific to the JDK or Eclipse 32/64-bit architectures - but I'm thinking it could still be due to the OS architecture and the SWT bindings.

I would hope that this isn't related to video card drivers, but in the 2 Windows 7 issues I tested, one is NVIDIA-based, and the other is Intel.

I have reproduced this with both Eclipse 3.5.2 and 3.6.

Reproducible: Always
Comment 1 Mark A. Ziesemer CLA 2010-07-21 21:43:58 EDT
Created attachment 174936 [details]
Screenshot attempting to re-order editor tabs

This screenshot shows a secondary 1280x1024 display extended left from a primary 1920x1200 display.  When attempting to re-order editor tabs, the shadow outline is appearing at the correct position relative to the monitor, but on the wrong monitor.  I'm suspecting that the -X coordinates involved in this display setup are contributing to the issue, as 0,0 is at the top-left of the Eclipse title bar.
Comment 2 Mark A. Ziesemer CLA 2010-07-21 21:47:47 EDT
Created attachment 174937 [details]
Screenshot attempting to move view tab

This image is from the same layout and configuration as the previous, and is attempting to move the "Tasks" view to the bottom-half of the "Package Explorer" view.  Again, the shadow outline of where the view will move to once released appears with the correct size, at the correct position relative to the monitor - but on the wrong monitor.
Comment 3 Mark A. Ziesemer CLA 2010-07-21 22:06:11 EDT
I realize that the WPF builds are now discontinued (bug 293830), but in case it is of any assistance, this issue is not reproducible with the WPF build from 3.5.2 (eclipse-SDK-3.5.2-win32-wpf.zip).
Comment 4 Felipe Heidrich CLA 2010-07-22 09:32:00 EDT

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