1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

win32: enable custom WM_NCHITTEST also when title bar is hidden

This commit is contained in:
Kacper Michajłow 2023-08-22 17:32:45 +02:00 committed by Dudemanguy
parent 4defeddbfc
commit 18deac3e81

View File

@ -1276,7 +1276,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
break; break;
case WM_NCHITTEST: case WM_NCHITTEST:
// Provide sizing handles for borderless windows // 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), return borderless_nchittest(w32, GET_X_LPARAM(lParam),
GET_Y_LPARAM(lParam)); GET_Y_LPARAM(lParam));
} }