Closed Bug 166640 Opened 22 years ago Closed 16 years ago

Browser window always opens in primary display on multiple monitor setup

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tom.welch, Assigned: jag+mozilla)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826

When starting Mozilla, the browser window will open in the same position as it
was when closed from the last session if it was in the area of the primary
display.  However, if the browser was positioned in the secondary monitor on
exit the next time it is launched the left edge of the windows is positioned at
zero and the rest of the positioning is retained.

This behavior may not be seen when the primary display is to the left of the
secondary monitor as coordinates will still be positive on the secondary
display.  Also, the same behavior should be seen when the primary monitor is
located below the secondary except the top position will be adjusted to zero.

Reproducible: Always

Steps to Reproduce:
1. Open Mozilla browser
2. Move window to secondary display
3. Close Mozilla
4. Open Mozilla again.

Actual Results:  
Mozilla opened with the left edge of the window at coordinate zero on the
primary display.

Expected Results:  
It should have opened on the secondary display.  It's left coordinate should
have been something like -800.
The proper component for this bug is XP Toolkit: Widgets

This is almost a duplicate of Bug 21942, except that this bug deals with window
placement prefs.
Status: UNCONFIRMED → NEW
Ever confirmed: true
.
Assignee: asa → jaggernaut
Component: Browser-General → XP Toolkit/Widgets
QA Contact: asa → jrgm
Whiteboard: DUPEME
So is the entire UI within the bounds of the XPToolkit?  There is apparently
(from the recent bugs I have found) a severe problem with Mozilla when dealing
with negative screen coordinates.  Whether it be window placement, mouse
hovering issues in a web document, or menu highlighting in the browser's menu,
the entire user interface (while still operable) breaks on a secondary monitor.

I get the feeling that somewhere there is code that saves the current mouse
coordinates for comparison during the next mouse message.  However, if the
current mouse coordinates are negative they are saved as zero.  What module
would contain that code?
*** Bug 170800 has been marked as a duplicate of this bug. ***
in bug 179745 comment 2, a user says that a new build cured a problem he had
with the browser "always popping up on the primary display instead of the
one where I closed it last". 

That sounds exactly like this bug. Can someone test it again with a new build?
Blocks: multimon-win
It's a platform independent bug. (tested on Linux)
WFM on Vista.
anyone else?
=> WFM 
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
This issue has returned with SeaMonkey for Mac 2.9.1. MacMini dual core 10.6.8 OS.
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.