Windows: Don't start a drag when it's a resize

There were a few pixels where you could click where, very near the
border where it would start a drag while it shouldn't.

The drag state machine then was in an invalid state which could lead to
a crash.

Fixes issue #110
This commit is contained in:
Sergio Martins
2020-12-10 21:16:42 +00:00
parent 80bf6032f3
commit fb6e2afd7b
3 changed files with 17 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ bool WidgetResizeHandler::handleWindowsNativeEvent(FloatingWindow *w, const QByt
}
}
w->setLastHitTest(*result);
return *result != 0;
} else if (msg->message == WM_NCLBUTTONDBLCLK) {
if ((Config::self().flags() & Config::Flag_DoubleClickMaximizes)) {