Browse Source

Windows: Only check for HTMAXBUTTON on Windows 11

Relates to #322
pull/323/head
Jannis Weis 3 years ago
parent
commit
869b1d5b28
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB
  1. 2
      windows/src/main/cpp/Decorations.cpp

2
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) {

Loading…
Cancel
Save