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

Bug 170092

Summary: [Workbench] Projects selection dialog for clean, appears on wrong monitor in multimonitor configuration
Product: [Eclipse Project] Platform Reporter: Sergey Fukanchik <fukanchik>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: christian.georgi, emoffatt, loskutov, psuzzi, pwebster
Version: 3.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Test program none

Description Sergey Fukanchik CLA 2007-01-10 11:16:10 EST
Build ID: M20060629-1905

Steps To Reproduce:
I use two monitor Windows XP. Eclipse is launched on secondary (!) monitor.
1. Launch eclipse on secondary monitor
2. Have some projects opened
3. Select menu: Project->Clean...
4. "Clean" dialog appears on primary (!) monitor


More information:
"Clean" dialog shall appear on the same monitor where eclipse.

This is probably is due to wrongly configured or not set parent window of "Clean" dialog shell.

This bug is always reproducible.

Probably other dialogs have this but too.
Comment 1 Sergey Fukanchik CLA 2015-12-28 16:48:21 EST
8 years later, Build id: 20150219-0600, problem is still there.
Comment 2 Andrey Loskutov CLA 2015-12-28 16:50:33 EST
(In reply to Sergey Fukanchik from comment #1)
> 8 years later, Build id: 20150219-0600, problem is still there.

May be a time to contribute? Seems to be a trivial patch.
See https://wiki.eclipse.org/Platform_UI/How_to_Contribute
Comment 3 Christian Georgi CLA 2016-02-03 07:47:19 EST
I tested the current Eclipse behavior and found the following:

On Windows 10 I cannot reproduce the effect.  Dialogs are opened where they were left off.

On Mac OS 10.11 (El Capitan) the effect only shows up if system preference "Displays have different Spaces" is enabled (which is the default).  In this mode Mac OS gathers all application windows, e.g. Eclipse's Clean dialog, in the one space/monitor where the parent window is located.  They can be moved to a different monitor, but upon opening are forced back to their original space.  This magic happens at OS level, so that SWT cannot influence the behavior.
If the option is disabled, dialog positions are restored as expected on the screen where they were closed.  See [1] for details.

@Sergey: on which system have you recently seen this effect?  Windows XP is out of maintenance.

@Eclipse contributors:
- With the attached SWT program you can easily test the behavior.
- I recommend moving the issue to SWT component as I don't see anything in platform UI code that is wrong.  Only SWT could maybe influence OS behavior.

Regards,
Christian


[1] http://superuser.com/questions/669758/stick-floating-eclipse-windows-on-second-screen-with-mac-os-10-9-mavericks
Comment 4 Christian Georgi CLA 2016-02-03 07:48:59 EST
Created attachment 259523 [details]
Test program
Comment 5 Sergey Fukanchik CLA 2016-02-14 15:55:30 EST
Last time i tested it with Windows 7
Comment 6 Sergey Fukanchik CLA 2016-03-04 18:26:07 EST
Christian,
I tested your code on Windows 7 SP1:
Both "Open Dialog/Child Shell" and "Open Top-level Shell" remember last position and open there at subsequent launches.
Comment 7 Eclipse Genie CLA 2020-05-19 03:45:17 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.