mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-21 16:47:07 +02:00
Override cursor only if no buttons pressed
This commit is contained in:
parent
bbe2adc44f
commit
65e2bbee3e
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ bool TitleWidgetQt::eventFilter(QObject *obj, QEvent *e) {
|
|||
const auto mouseEvent = static_cast<QMouseEvent*>(e);
|
||||
const auto edges = edgesFromPos(mouseEvent->windowPos().toPoint());
|
||||
|
||||
if (e->type() == QEvent::MouseMove) {
|
||||
if (e->type() == QEvent::MouseMove
|
||||
&& mouseEvent->buttons() == Qt::NoButton) {
|
||||
updateCursor(edges);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue