gecko-dev/xpfe
Ray Kraesig 973287f3eb Bug 1575635 - [1/1] Only use parent window's fullscreen state r=win-reviewers,mhowell
When we open a new window on top of a fullscreen window, we deliberately
make that window "normal" (non-fullscreen, non-maximized), which was
documented as having been "a standard [W]indows convention" [1].
Chromium does the same (with fiddly differences involving the window
size).

Unfortunately, we do this by checking if there are _any_ fullscreen
windows open -- which produces false positives on multimonitor or
multi-virtual-desktop setups.

Therefore, adjust the code to match the original comment, and only take
the parent window into account. This seems likely to better match user
expectations.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=575195#c5

Differential Revision: https://phabricator.services.mozilla.com/D197823
2024-01-09 22:54:46 +00:00
..
appshell Bug 1575635 - [1/1] Only use parent window's fullscreen state r=win-reviewers,mhowell 2024-01-09 22:54:46 +00:00