Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
widget: minor simply
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Sep 26, 2023
1 parent 79d5087 commit 27a9e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/standardtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static inline void emulateLeaveEvent(QWidget *widget)
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
const QScreen *screen = widget->screen();
#else
const QScreen *screen = QGuiApplication::primaryScreen();
const QScreen *screen = widget->windowHandle()->screen();
#endif
const QPoint globalPos = QCursor::pos(screen);
if (!QRect(widget->mapToGlobal(QPoint{ 0, 0 }), widget->size()).contains(globalPos)) {
Expand Down

0 comments on commit 27a9e08

Please sign in to comment.