dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Scale factor of window on fullscreen secondary monitor is read as main monitor's scaling factor

Open Abrahamh08 opened this issue 8 months ago • 0 comments

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

  1. Have two monitors with different scaling factors
  2. Launch the Dioxus desktop app with fullscreen enabled on the secondary monitor but without calling .with_position().
  3. Attempt to read the window’s scale factor.
  4. 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)

Abrahamh08 avatar Jun 09 '25 23:06 Abrahamh08