Open Bug 1614218 Opened 2 years ago Updated 16 days ago

Maximized window titlebar bleeds into bottom of adjacent monitor or under taskbar (overflow, overlap, spill, multiple, dual, display, screen)

Categories

(Core :: Widget: Win32, defect, P2)

58 Branch
defect

Tracking

()

Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- affected
firefox93 --- wontfix
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- fix-optional

People

(Reporter: haloflooder, Unassigned)

References

(Regression)

Details

(Keywords: multi-monitors, regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

OS: Windows 10 Build 18362.592

Have a multi-monitor setup with at least 1 monitor on top and 1 on the bottom.

Maximize the firefox window on the bottom monitor via snapping or maximize button.

Actual results:

The firefox window bleeds into the top monitor by 6 pixels.

I have tried maximizing other programs such as Chrome, Notepad, Visual Studio Code, etc and they don't bleed into the top monitor.

Also attempted to rearrange the display positions in Display Settings in the Windows settings but it didn't change the results.

Expected results:

The window shouldn't bleed into the other monitor when the window is maximized.

Component: Untriaged → Widget: Win32
Product: Firefox → Core

The priority flag is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jmathies)
Keywords: multi-monitors
Priority: -- → P3
See Also: → 1592580

Firefox bleeding (that white bar at top; sometimes different color) on top monitor when maximized in bottom monitor.
Sometimes it also bleeds on side monitors.

Please fix.

I have the same issue. 8px bleed on the top monitor (1080p monitor on top of 1440p).

The bleed disappears if browser.tabs.drawInTitlebar is disabled.

Some people have commented about this in bug 485707 just couple weeks ago.

Priority: P3 → P2

I see the same issue in Firefox beta 89.0b11 on Windows 10 20H2 with a 2x2 monitor setup similar to haloflooder. All 4 monitors are 1920x1200, and a window maximized in the bottom right monitor bleeds into almost the entire length of the upper right monitor while also drawing a small corner into the top left monitor. A window maximized in the bottom left monitor only bleeds into the top left monitor.

Per milzer's comment I tried disabling browser.tabs.drawInTitlebar, and that works around the bleed issue.

Duplicate of this bug: 1723539

Adding another example of this occuring in Win64 Firefox 90.0.2 (64bit).

I have exactly the same issue in Win10 FF 91.1.0esr (64bit). The Chrome browser doesn't have this issue at all.

Duplicate of this bug: 1653149
See Also: → 1600582
Duplicate of this bug: 1592580
Duplicate of this bug: 1650650
Duplicate of this bug: 1666950
Duplicate of this bug: 1691567
Duplicate of this bug: 1707237
Duplicate of this bug: 1681713
Duplicate of this bug: 1600498
Duplicate of this bug: 1587707
Duplicate of this bug: 1679457
Duplicate of this bug: 1682138
Duplicate of this bug: 1702386
Duplicate of this bug: 1646572
Duplicate of this bug: 1669584

Same problem for me :(
FF 93.0 64bits

Duplicate of this bug: 1600582
Duplicate of this bug: 1706327

Added keywords to title to make it easier to find and help reduce the number of duplicates.

Summary: Maximized windows bleeds into other monitor (vertical only) → Maximized window titlebar bleeds into bottom of adjacent monitor or under taskbar (overflow, overlap, spill, multiple, dual, display, screen)

Can be avoided with the following userChrome.css:

:root[tabsintitlebar][sizemode="maximized"] {
  appearance: -moz-win-glass;
}

Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=307a7a34013060a6a1e87dfbb911f058d0781a2e&tochange=57f68296c350469d73d788eb3695a898947b4acb

Regressed by Bug 1366405.

Keywords: regression
Regressed by: 1366405
Version: 72 Branch → 58 Branch
Has Regression Range: --- → yes

The overflow is mentioned in the following code:

} else if (aAppearance == StyleAppearance::MozWindowTitlebarMaximized) {
// The origin of the window is off screen when maximized and windows
// doesn't compensate for this in rendering the background. Push the
// top of the bitmap down by SM_CYFRAME so we get the full graphic.
widgetRect.top += GetSystemMetrics(SM_CYFRAME);

https://searchfox.org/mozilla-central/rev/2c4b830b924f42283632b70f39a60fd36433dd4d/widget/windows/nsNativeThemeWin.cpp#1597

This would suggest background transparency is necessary for maximized windows to avoid this problem.

See Also: → 1735370

I have the same Bug, super annoying. Only thing working is: browser.tabs.drawInTitlebar to false

Hope you guys can fix this soon!

Cheers

I have 2 4K monitors, one above the other. chrome etc. work fine. firefox 93.0. win 10/11

See Also: → 1589431
See Also: → 1528747

(In reply to Kestrel from comment #27)

Can be avoided with the following userChrome.css:

:root[tabsintitlebar][sizemode="maximized"] {
  appearance: -moz-win-glass;
}

Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=307a7a34013060a6a1e87dfbb911f058d0781a2e&tochange=57f68296c350469d73d788eb3695a898947b4acb

Regressed by Bug 1366405.

Thank you very much. I works perfectly and the bug is gone. I wonder why the other people igrnored this post.

(In reply to GASH from comment #31)

(In reply to Kestrel from comment #27)

Can be avoided with the following userChrome.css:

:root[tabsintitlebar][sizemode="maximized"] {
  appearance: -moz-win-glass;
}

Thank you very much. It works perfectly and the bug is gone. I wonder why the other people igrnored this post.

Because it does not fix.

(In reply to Sunny from comment #33)

Because it does not fix.

Indeed. I was too fast. It works until you fullscreen a video on YT e.g.

At a guess i would say there something about how the newer versions of windows is handling the titlebar that is causing this issue.

(In reply to GASH from comment #34)

(In reply to Sunny from comment #33)

Because it does not fix.

Indeed. I was too fast. It works until you fullscreen a video on YT e.g.

It works for me..

I have the same problem with a setup of 2 monitors at the top and 1 at the bottom. Maximizing Firefox lets the titlebar bleed into the top two monitors.

Firefox 94.0.1 (64-bit)
Microsoft Windows [Version 10.0.19043.1288]

I can confirm that both:

Toggling browser.tabs.drawInTitlebar to false
or
Creating a userChrome.css and toggling 'toolkit.legacyUserProfileCustomizations.stylesheets' to true (see post above)
solve the problem.
Toggling browser.tabs.drawInTitlebar to false

Unacceptable. This is no more solution than 'don't maximize your firefox'

Creating a userChrome.css and toggling 'toolkit.legacyUserProfileCustomizations.stylesheets' to true

Does not fix.

(In reply to Sunny from comment #37)

Toggling browser.tabs.drawInTitlebar to false

Unacceptable. This is no more solution than 'don't maximize your firefox'

Agreed

Creating a userChrome.css and toggling 'toolkit.legacyUserProfileCustomizations.stylesheets' to true

Does not fix.

Fixes it for me at least until I fullscreen a video.

After 2 years I hope the developers can fix this natively. cause i guess its a problem for many people because lots of people have dual screen setups.

Severity: normal → --
Flags: needinfo?(gsvelto)

Given the number of dupes, can we get some more attention on this from the OSInt team?

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