Bug 1838330: Make AppWindow::FullscreenWillChange correctly compare window to screen...
commitc03417c28426efacc1d4c0519d84500930a81f94
authorBrad Werth <bwerth@mozilla.com>
Wed, 14 Jun 2023 18:53:34 +0000 (14 18:53 +0000)
committerBrad Werth <bwerth@mozilla.com>
Wed, 14 Jun 2023 18:53:34 +0000 (14 18:53 +0000)
tree0bcd9162b4112cd52cfb91efcc2bfbeb79572845
parent8596ffe6040fc8de51fc4674723622b4f788dab4
Bug 1838330: Make AppWindow::FullscreenWillChange correctly compare window to screen using device scale. r=edgar

The implementation of AppWindow::ForceRoundedDimensions makes clear that
the window size from GetSize` is unscaled. This patch updates the math in
FullscreenWillChange to also consider devices pixels per css pixel.

Differential Revision: https://phabricator.services.mozilla.com/D180886
xpfe/appshell/AppWindow.cpp