dioxus
dioxus copied to clipboard
Scale factor of window on fullscreen secondary monitor is read as main monitor's scaling factor
Problem
The scale factor of a fullscreen window on secondary monitor is read as the scale factor as the main monitor unless .with_position() is set explicitly in the window configuration.
Steps To Reproduce
- Have two monitors with different scaling factors
- Launch the Dioxus desktop app with fullscreen enabled on the secondary monitor but without calling
.with_position(). - Attempt to read the window’s scale factor.
- Observe incorrect scale factor values
Expected behavior
The application should be able to read the correct window scale factor even without explicitly setting the position when launching fullscreen.
Workaround
See my commit showing the workaround: https://github.com/odysseyarm/odyssey-desktop/compare/c44572055486...340ed49d436d
Environment:
- Dioxus version: v0.7.0-alpha-1
- OS info: Windows 11
- App platform: desktop (Dioxus desktop)