Reset cursor on window leave

This commit is contained in:
Ilya Fedin 2020-06-30 15:24:00 +04:00 committed by John Preston
parent dd76d54aeb
commit e7c598e533

View file

@ -116,6 +116,12 @@ bool TitleWidgetQt::eventFilter(QObject *obj, QEvent *e) {
return startResize(mouseEvent->windowPos().toPoint());
}
}
} else if (e->type() == QEvent::Leave) {
if (window() == static_cast<QWidget*>(obj)) {
while (QGuiApplication::overrideCursor()) {
QGuiApplication::restoreOverrideCursor();
}
}
}
return TitleWidget::eventFilter(obj, e);