Open Bug 1005618 Opened 10 years ago Updated 7 months ago

[Linux/gtk] Using dual monitors, Firefox/Thunderbird opens in wrong monitor

Categories

(Core :: Widget: Gtk, defect, P3)

x86_64
Linux
defect

Tracking

()

People

(Reporter: sawrubh, Unassigned)

References

Details

(Whiteboard: tpi:+)

This is the bug for tracking the Linux specific fix for bug 264030
Some more information from https://bugzilla.mozilla.org/show_bug.cgi?id=264030#c123:

I am not versed in cpp or GTK or anything like that, but I just noticed:

There are a bunch of gdk_window_get_screen() and friends in mozilla-central/widget/gtk2, but in the whole directory, not a single file calls gtk_window_set_screen(). So, it looks to me as if someone forgot to add this line, and maybe someone should check the source and add the command whereever it would be required.

As I said, I have never coded cpp, so I can't do it myself, but I hope this info helps.

For the record: Firefox 16.0.1 on Linux Mint, two screens, same problem. 

Also really annoying as it even overrides default workspace settings on the window manager "awesome", so you can't even force it to a specific tab with it.
Summary: Linux tracking bug for 264030 → [Linux/gtk] Using dual monitors, Firefox/Thunderbird opens in wrong monitor
Note: For anyone working on this bug, the Mac OS X patch in bug 1005620 might be a useful starting point or reference.
Priority: -- → P2
Whiteboard: tpi:+
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3

I am having this problem with the 64-bit Thunderbird 102.1.0 snap on Ubuntu 22.04. It also happened on the version 91 package from the Ubuntu repo. It does remember the correct window position, but opens on the primary monitor instead of the monitor it was on before closing.

The Firefox snap (104.0b5) remembers the monitor correctly. I am using the default Gnome desktop that comes with Ubuntu Desktop 22.04. The display manager is gdm3. I did switch from wayland to xorg to try and solve an unrelated problem.

Followup... New behavior: Every once in a while, Thunderbird will remember that it was on the second monitor and it will show up correctly, and even in the right location on that monitor. Most of the time it won't remember either the position or the monitor ... it will open at the upper left corner of the primary monitor. I have no idea what is different when it remembers.

I'm running Thunderbird 102.2.2 as a snap on Ubuntu Desktop 22.04. Other programs installed as snaps will remember their position perfectly, including Firefox 105.0b9.

Side note: The Thunderbird snap seems to suffer from the slow startup that used to plague the FIrefox snap on Ubuntu. It's not SUPER slow, but the delay is noticeable.

Now my Ubuntu snap is Thunderbird version 102.3.0.

This version has made a little bit of progress. Now the window does not open at the top left corner, it remembers the position it had on the second monitor. But it is still opening on the main monitor instead of remembering that it was on the second monitor.

The 106.0b4 version of the Firefox snap is working perfectly. If it was on the second monitor when it closed, it opens on the second monitor.

Severity: normal → S3
Flags: needinfo?(bugzilla)

The behavior keeps changing a little bit in both Thunderbird and Firefox with each new refresh of the beta application in snap. Currently Thunderbird (111.0b1 for Ubuntu, snap build) does not remember the monitor OR the position. The current version of Firefox (111.0b6 for Ubuntu, snap build) remembers the monitor and the horizontal position, but not the vertical position.

Flags: needinfo?(bugzilla)
You need to log in before you can comment on or make changes to this bug.