Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 74762 - [Workbench] Dual screen (Matrox DualHead MultiDisplay) startup only on one monitor
Summary: [Workbench] Dual screen (Matrox DualHead MultiDisplay) startup only on one mo...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Stefan Xenos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 08:42 EDT by romain CLA
Modified: 2004-11-03 17:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description romain CLA 2004-09-23 08:42:10 EDT
Hi,
I'm working with two screens, connected to a Matrox "DualHead" Card...
That configuration is if I maximize a program window, it maximize only on one of
the two screens, but I can open it on the two screens (as if it was a unique
wide screen) manually by extending edges of the window to the bounds of that
"big" screen...

With eclipse version 2.1 everything worked fine, at startup my eclipse window
was using both screens as if I had a unique wide-wide screen.
With 3.0 & 3.0.1 I have to resize my window manually each time I start eclipse
up to fit on both screens.
Strange is :
-The splash screen appears on my left monitor
-The window (not maximized, but open wide) fit only on the rightmost screen
-I can manually fit the screen on the two screensby moving eclipse left edge to
my leftmost screen left border.
But nothing seems saved, and next time I'll startup eclipse I'll have to resize
it manually again...
Comment 1 Stefan Xenos CLA 2004-09-23 14:22:40 EDT
This is easily reproduced:

1) Open a single Eclipse window, and stretch it across both monitors
2) Close and restart Eclipse

Notice that Eclipse will only occupy one of the two monitors. The trouble is, in
many cases this would be considered a feature, not a bug. 

Let me guess: you must have a pair of snazzy flatscreens where the visible area
goes right to the edge of the monitor, right? Unfortunately, most of us
dual-monitor folks aren't so lucky: we're stuck with monitors that have some
sort of non-viewable region around the edge, making a window pretty much
unreadable if it spans more than one monitor.

Usually, windows end up spanning multiple monitors by accident (the user changed
resolutions, moved the taskbar, repositioned their monitors, etc.)... and this
stops the window from being initially unreadable or ending up completely
obscured by the taskbar or offscreen entirely.

I'd be inclined to close this one as WONTFIX. Those lucky folks who have
borderless monitors can choose drivers that report a pair of monitors as though
it was one giant monitor... or use utilities like UltraMon that have a
maximize-across-all-monitors feature.


In case I'm overruled, here's how to fix it. Change
WorkbenchWindow.initializeBounds to the following:

    protected void initializeBounds() {
        Point size = getInitialSize();
        Point location = getInitialLocation(size);
        getShell().setBounds(new Rectangle(location.x, location.y,
                        size.x, size.y));
    }

BTW, this fix does NOT go in the JFace Window class.

Comment 2 romain CLA 2004-09-24 02:45:48 EDT
Well,
no, sorry, I have biiiiig borders around my screens, but the way I split windows
inside eclipse allow me to use it on two screens (right screen is editors, left
screen everything else).

My question is : If I quit eclipse after having sized it the way I feel
confortable to work with, why doesn't eclipse re-use that size when it is
launched again ? Version 2.1 did that perfectly in fact...
At least should it be a configurable option of the editor if you think in some
cases it my be a "feature" (having to resize my favorite IDE each time I launch
it is pretty boring (well, doesn't take me hours to resize it, of course ;-) ))

Ciao, r0main
Comment 3 Stefan Xenos CLA 2004-10-08 17:22:17 EDT
I guess you're right. I personally NEVER want any window to span multiple
monitors, but the behavior you're asking for is the standard behavior and
Windows multimonitor users are used to moving windows back onscreen whenever
they switch resolutions or reposition their monitors.
Comment 4 Stefan Xenos CLA 2004-10-08 17:24:14 EDT
Okay, fixed in HEAD, 3.1 stream. 

BTW, you might want to try running with multiple maximized Eclipse windows. I
find that preferable to a single Eclipse window that spans multiple monitors.
Comment 5 Stefan Xenos CLA 2004-11-03 17:33:06 EST
Verified in I200411022000