Skip to content

wayland: don't use old viewport after scale changes - #18880

Open
llyyr wants to merge 1 commit into
mpv-player:masterfrom
llyyr:surface-local-scale
Open

llyyr wants to merge 1 commit into
mpv-player:masterfrom
llyyr:surface-local-scale

Conversation

@llyyr

@llyyr llyyr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

The preferred scale can change before the compositor sends a new toplevel size. Avoid reusing the cached viewport dimensions.

Fixes: #18877
Fixes: fd2215e ("wayland: override surface local coordinates on reconfigures")

Read this before you submit this pull request:
https://github.com/mpv-player/mpv/blob/master/DOCS/contribute.md

Reading this link and following the rules will get your pull request reviewed
and merged faster. Nobody wants lazy pull requests.

The preferred scale can change before the compositor sends a new
toplevel size. Avoid reusing the cached viewport dimensions.

Fixes: mpv-player#18877
Fixes: fd2215e ("wayland: override surface local coordinates on reconfigures")
@kasper93
kasper93 requested a review from Dudemanguy November 22, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(KDE Wayland) GUI coordinates become incorrect when dragging window between monitors with different scaling factors

1 participant