diff --git a/windows/src/main/cpp/Decorations.cpp b/windows/src/main/cpp/Decorations.cpp index 2e04979d..9632768e 100644 --- a/windows/src/main/cpp/Decorations.cpp +++ b/windows/src/main/cpp/Decorations.cpp @@ -131,7 +131,7 @@ static bool IsLeftMousePressed(WindowWrapper *wrapper) { && ptMouse.x <= rcWindow.right - wrapper->right) { return HTCAPTION; } - if (x_in_button_area && y_in_title_area) { + if (is_windows_11 && x_in_button_area && y_in_title_area) { if (ptMouse.x < rcWindow.right - 2 * wrapper->button_width) { return HTCLIENT; } else if (ptMouse.x < rcWindow.right - wrapper->button_width) {