summaryrefslogtreecommitdiffstats
path: root/video/out/w32_common.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-08-22 17:32:45 +0200
committerDudemanguy <random342@airmail.cc>2023-09-21 23:13:19 +0000
commit18deac3e817f3519e100f021a462dd83a85b8356 (patch)
tree5bbba38f6b285bcff81dab760dcc82470ab7257b /video/out/w32_common.c
parent4defeddbfcf7ee2f00f0d0686fd2d1e2c40f626f (diff)
downloadmpv-18deac3e817f3519e100f021a462dd83a85b8356.tar.bz2
mpv-18deac3e817f3519e100f021a462dd83a85b8356.tar.xz
win32: enable custom WM_NCHITTEST also when title bar is hidden
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r--video/out/w32_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 0c0d58cbf6..ae644e1894 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -1276,7 +1276,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
break;
case WM_NCHITTEST:
// Provide sizing handles for borderless windows
- if (!w32->opts->border && !w32->current_fs) {
+ if ((!w32->opts->border || !w32->opts->title_bar) && !w32->current_fs) {
return borderless_nchittest(w32, GET_X_LPARAM(lParam),
GET_Y_LPARAM(lParam));
}