mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1239353 - Don't try to change DPI on the fly for popup windows, they remain connected to their parent's presShell and therefore need to share its resolution. r=emk
This commit is contained in:
parent
f0ff92fb9b
commit
8a630c517b
@ -6863,6 +6863,11 @@ nsWindow::OnSysColorChanged()
|
||||
void
|
||||
nsWindow::OnDPIChanged(int32_t x, int32_t y, int32_t width, int32_t height)
|
||||
{
|
||||
// Don't try to handle WM_DPICHANGED for popup windows (see bug 1239353);
|
||||
// they remain tied to their original parent's resolution.
|
||||
if (mWindowType == eWindowType_popup) {
|
||||
return;
|
||||
}
|
||||
if (DefaultScaleOverride() > 0.0) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user