Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EdnY1 authored and tishion committed Jul 19, 2024
1 parent 90b22f3 commit a13f04e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/QCefView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,8 @@ QCefView::leaveEvent(QEvent* event)
{
Q_D(QCefView);

QPoint localPos = QCursor::pos();
QPoint globalPos = mapToGlobal(localPos);

QMouseEvent moveEvent(QEvent::MouseMove, localPos, globalPos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
QPoint mousePos = QCursor::pos();
QMouseEvent moveEvent(QEvent::MouseMove, mousePos, mousePos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
d->onViewMouseEvent(&moveEvent);

QWidget::leaveEvent(event);
Expand Down

0 comments on commit a13f04e

Please sign in to comment.