Skip to content

Commit

Permalink
win32: enable custom WM_NCHITTEST also when title bar is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Sep 21, 2023
1 parent a549630 commit 1b3f645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video/out/w32_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 1b3f645

Please sign in to comment.