mpv-player / mpv-player/mpv

Geometry doesn't function when hiding the taskbar

Open
#7,192 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:win vo:gpu:d3d11
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv version and platform

Latest, windows 10 but also on windows 7

Reproduction steps

Run an autoit script that hides the taskbar using this code:
WinSetTrans("[Class:Shell_TrayWnd]", "", 0)
ControlHide('','', WinGetHandle("[CLASS:Button]"))

I'm running MPV with the following commands:
--cursor-autohide=always
--hwdec=auto
--no-window-dragging
--no-border
--no-keepaspect
--ontop
--osc=no
--no-input-default-bindings
--geometry=960x540+0+0

this is on a 1920x1080 video. I run four different videos at the same time with these commands so it should be 2x2 videos on a screen. The screen resolution is 1920x1080

Expected behavior

That four videos fill the screen.

Actual behavior

The videos play in the center of the screen with space all around them. HOWEVER this does function properly if I use "auto-hide" on the taskbar instead of hiding it via autoit.

Basically regardless of me hiding it with auto-it or not, the window draws as though the taskbar is shown.

Log file

githublog.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Windows with the AutoIt taskbar-hiding steps and the listed mpv options, then inspect githublog.txt alongside the window geometry behavior. Compare the result with Windows taskbar auto-hide. Done means the four 960x540 videos fill the 1920x1080 screen when the taskbar is hidden through AutoIt.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.