DioxusLabs / DioxusLabs/dioxus

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

Open
#4,262 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.