mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
fa72b197d9
9 changed files with 52 additions and 68 deletions
|
|
@ -6932,11 +6932,12 @@ nsGlobalWindow::SetFullscreenInternal(FullscreenReason aReason,
|
|||
// gone full screen, the state trap above works.
|
||||
mFullScreen = aFullScreen;
|
||||
|
||||
// Sometimes we don't want the top-level widget to actually go fullscreen,
|
||||
// for example in the B2G desktop client, we don't want the emulated screen
|
||||
// dimensions to appear to increase when entering fullscreen mode; we just
|
||||
// want the content to fill the entire client area of the emulator window.
|
||||
if (!Preferences::GetBool("full-screen-api.ignore-widgets", false)) {
|
||||
// Sometimes, users don't want the DOM to actually go fullscreen, for
|
||||
// example on large monitors where it would waste screen real estate.
|
||||
// When restricted by the relevant preference, we just want the content
|
||||
// to fill the area of the existing window, instead, which is done by
|
||||
// skipping resizing of the top-level content widget to be screen-filling.
|
||||
if (!Preferences::GetBool("full-screen-api.restrict-to-window", false)) {
|
||||
if (MakeWidgetFullscreen(this, aReason, aFullScreen)) {
|
||||
// The rest of code for switching fullscreen is in nsGlobalWindow::
|
||||
// FinishFullscreenChange() which will be called after sizemodechange
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue