From fe724271daeb0babb8fa92f016cb1a83a294d7b9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao Date: Mon, 24 Apr 2023 13:18:57 +0800 Subject: [PATCH] unix: fix wrong system menu position --- src/core/framelesshelper_qt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/framelesshelper_qt.cpp b/src/core/framelesshelper_qt.cpp index 38b07df8..0a37cc04 100644 --- a/src/core/framelesshelper_qt.cpp +++ b/src/core/framelesshelper_qt.cpp @@ -213,7 +213,7 @@ bool FramelessHelperQt::eventFilter(QObject *object, QEvent *event) } if (button == Qt::RightButton) { if (!ignoreThisEvent && insideTitleBar) { - data.params.showSystemMenu(scenePos); + data.params.showSystemMenu(globalPos); event->accept(); return true; }