1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-18 17:40:30 +00:00

w32_common: re-add fullscreen check when start dragging

5736737750 removed the check because it was
not needed to prevent fullscreen window from being dragged. However, this
causes an undesirable behavior: when using a touch screen to drag a window
on Windows 11, DWM shrinks the window content a bit with an acrylic
backdrop to indicate that the window is being dragged. This also happens
when trying to drag the window in fullscreen. Add the check to prevent
this from happening.
This commit is contained in:
nanahi 2024-02-27 09:40:36 -05:00 committed by sfan5
parent 092f556898
commit 4b8c47d20b

View File

@ -474,7 +474,8 @@ static bool handle_char(struct vo_w32_state *w32, WPARAM wc, bool decode)
static void begin_dragging(struct vo_w32_state *w32)
{
if (mp_input_test_dragging(w32->input_ctx, w32->mouse_x, w32->mouse_y))
if (w32->current_fs ||
mp_input_test_dragging(w32->input_ctx, w32->mouse_x, w32->mouse_y))
return;
// Window dragging hack
ReleaseCapture();