1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 10:51:51 +00:00
mpv/video
nanahi 5736737750 win32: stop fullscreen window from moving while dragging hack is active
The mouse down handler checks w32->current_fs to determine whether
to begin the dragging hack. Unfortunately, the w32->current_fs value
is stale, because the input is handled asynchronously, and we cannot
wait for an up-to-date value if dragging needs to be kept resonsive.

As a result, when the fullscreen state changes after the dragging
model loop is entered, the opposite value is used, so the window stays
draggable after entering fullscreen, and becomes undraggable after
exiting fullscreen.

With the resonsiveness and model loop constraints, the up-to-date
state must be queried inside WM_MOVING messages which are sent while
dragging. The message handler now checks if the dragging hack is active
while the window is in fullscreen, and overrides the new window position
with the current one, in effect prevents the window from being moved.

The old check is also removed, so the window is now draggable after
exiting fullscreen while dragging hack is active.
2023-12-10 16:35:40 +01:00
..
decode ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
filter vo_gpu: don't pass ra_fbo by value 2023-11-28 10:46:16 +01:00
out win32: stop fullscreen window from moving while dragging hack is active 2023-12-10 16:35:40 +01:00
csputils.c ALL: use pl_hdr_metadata and nuke sig_peak 2023-11-05 18:57:36 +01:00
csputils.h ALL: use pl_hdr_metadata and nuke sig_peak 2023-11-05 18:57:36 +01:00
cuda.c cuda: move --cuda-device to cuda_opts group 2023-09-22 14:20:38 +00:00
d3d.c vo: add missing return variable assignment 2023-11-18 23:55:28 +00:00
d3d.h
drmprime.c
fmt-conversion.c hwdec_vulkan: add Vulkan HW Interop 2023-05-28 15:46:05 -07:00
fmt-conversion.h
hwdec.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
hwdec.h hwtransfer: use the right hardware config to find conversion targets 2023-08-26 10:07:55 -07:00
image_loader.c
image_loader.h
image_writer.c image_writer: default to lossless AVIF screenshots 2023-12-04 20:34:17 +01:00
image_writer.h video/image_writer: add avif screenshot support 2023-07-01 02:05:23 +00:00
img_format.c
img_format.h img_format: remove duplicated macros 2023-10-23 00:10:42 +00:00
mp_image_pool.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
mp_image_pool.h f_hwtransfer: disable vulkan multiplane images when uploading from cuda 2023-05-28 15:46:05 -07:00
mp_image.c mp_image: remove local params copy from mp_image_setfmt 2023-11-28 10:46:16 +01:00
mp_image.h mp_image: add force_window field 2023-09-21 14:08:52 +00:00
repack.c
repack.h
sws_utils.c
sws_utils.h
vaapi.c vaapi: bump vaapi info callback to verbose messages 2023-11-26 18:19:11 +01:00
vaapi.h ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h
vdpau.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
vdpau.h ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
zimg.c ALL: use pl_hdr_metadata and nuke sig_peak 2023-11-05 18:57:36 +01:00
zimg.h