3 Jun
2024
3 Jun
'24
10:44 a.m.
Well, I don't know if we need to replicate that?
It's probably added because Android's onSizeChanged() always reports physical size. And the desktop window might be running with a different DPI and DPI awareness context.
We could also make explorer process explicitly change its awareness on startup, and maybe that's something we should do regardless?
NtUserSetWindowPos() calls map_dpi_winpos() to map DPI, and map_dpi_winpos() in turn calls get_dpi_for_window(), which uses get_monitor_dpi() and get_monitor_dpi() always uses the primary monitor DPI. So the desktop window is not per-monitor aware and we should probably keep the `NtUserSetThreadDpiAwarenessContext` call. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5774#note_72190