Skip to content

win32: window moves unexpectedly during manual resize to taller-than-screen #8728

@avih

Description

@avih

mpv master, own build, 0.33.0-102-g5824d9fff8
Windows 10 20H2.

Reproduction steps

  • Open mpv with a video roughly the same height as the the display but narrow enough such that resizing would be limited by the height. E.g. on a 1080p display this would do: mpv --no-config av://lavfi:testsrc=size=1000x1000
  • Drag the window down such that roughly only the top half remains visible on screen.
  • Resize the window upward from the window top edge or one of the top corners, and try to make it taller than the screen height would allow (should be reached quickly because the height is near or at the maximum already).

Expected behavior

The window should not grow bigger at some stage, and remain in place.

Actual behavior

Once the maximum allowed height is reached, the window starts moving very rapidly upwards until it goes out of the display (it does come back into the display when releasing the mouse button which was held down during the resize)..

Log file

https://0x0.st/-TR3.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions