From 65e2bbee3efbbfb3448e68db65b4e817cdcd7c8b Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 31 Jul 2020 02:38:21 +0000 Subject: [PATCH] Override cursor only if no buttons pressed --- Telegram/SourceFiles/window/window_title_qt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/window_title_qt.cpp b/Telegram/SourceFiles/window/window_title_qt.cpp index 8914846816..a8a02de5b6 100644 --- a/Telegram/SourceFiles/window/window_title_qt.cpp +++ b/Telegram/SourceFiles/window/window_title_qt.cpp @@ -211,7 +211,8 @@ bool TitleWidgetQt::eventFilter(QObject *obj, QEvent *e) { const auto mouseEvent = static_cast(e); const auto edges = edgesFromPos(mouseEvent->windowPos().toPoint()); - if (e->type() == QEvent::MouseMove) { + if (e->type() == QEvent::MouseMove + && mouseEvent->buttons() == Qt::NoButton) { updateCursor(edges); }