diff options
author | Philip Langdale <philipl@overt.org> | 2019-12-03 21:41:04 +0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-12-04 09:32:25 +0800 |
commit | f8689eff6d8c982ed970f02929a50be1406e1e25 (patch) | |
tree | 2e6fc8bbedb21e80fbc646ab3bcc90c321a24203 /video/vdpau_mixer.h | |
parent | 7f300a00e929bd728c6cbff27b68bbbf28e85d0f (diff) | |
download | mpv-f8689eff6d8c982ed970f02929a50be1406e1e25.tar.bz2 mpv-f8689eff6d8c982ed970f02929a50be1406e1e25.tar.xz |
osc: ensure that window control show/hide zone is handled dynamically
As preparation for adding the auto mode for window controls, we need
to make sure that the controls can be successfully toggled at runtime,
rather than only being able to configure them once at startup. Right
now, there is a problem with the handling of the show/hide zone for
the window controls.
The previous fix for #7212 was to avoid registering the input mapping
for the window control show/hide zone. If there is no input mapping,
then there is no input, and the zone is a no-op, even if it exists.
But this only happens at startup. After that point, the input mapping
doesn't exist and cannot be turned on.
In this change, I'm switching the approach; we now go back to always
registering the input mapping, and instead, we zero out the show/hide
zone if window controls are disabled, and set its size appropriately
if they are enabled.
Diffstat (limited to 'video/vdpau_mixer.h')
0 files changed, 0 insertions, 0 deletions