mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Override cursor only if no buttons pressed
This commit is contained in:
parent
bbe2adc44f
commit
65e2bbee3e
@ -211,7 +211,8 @@ bool TitleWidgetQt::eventFilter(QObject *obj, QEvent *e) {
|
|||||||
const auto mouseEvent = static_cast<QMouseEvent*>(e);
|
const auto mouseEvent = static_cast<QMouseEvent*>(e);
|
||||||
const auto edges = edgesFromPos(mouseEvent->windowPos().toPoint());
|
const auto edges = edgesFromPos(mouseEvent->windowPos().toPoint());
|
||||||
|
|
||||||
if (e->type() == QEvent::MouseMove) {
|
if (e->type() == QEvent::MouseMove
|
||||||
|
&& mouseEvent->buttons() == Qt::NoButton) {
|
||||||
updateCursor(edges);
|
updateCursor(edges);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user