From 6d82cd8c134591bb7e626f1a1e484892c9598e5c Mon Sep 17 00:00:00 2001 From: yangmin100 Date: Fri, 15 Nov 2024 16:52:31 +0800 Subject: [PATCH 1/2] fix:auth window could'n show --- polkit-agent/src/fullscreenbackground.cpp | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/polkit-agent/src/fullscreenbackground.cpp b/polkit-agent/src/fullscreenbackground.cpp index 9bbaa3d..40bb5b8 100644 --- a/polkit-agent/src/fullscreenbackground.cpp +++ b/polkit-agent/src/fullscreenbackground.cpp @@ -338,27 +338,27 @@ void FullScreenBackground::moveToScreen(QScreen *screen) void FullScreenBackground::moveToCursorScreen() { bool isFoundScreen = false; - if (m_isWayland) { - QString strCurScreen = WindowManager::currentOutputName(); - for (auto screen : QApplication::screens()) { - qDebug() << "Screen:" << screen->name() << "," << screen->geometry(); - if (screen && screen->name() == strCurScreen) { - isFoundScreen = true; - moveToScreen(screen); - break; - } - } - } else { - QPoint cursor = QCursor::pos(); - for (auto screen : QApplication::screens()) { - qDebug() << "Screen:" << screen->name() << "," << screen->geometry(); - if (screen && screen->geometry().contains(cursor)) { - isFoundScreen = true; - moveToScreen(screen); - break; - } + // if (m_isWayland) { + // QString strCurScreen = WindowManager::currentOutputName(); + // for (auto screen : QApplication::screens()) { + // qDebug() << "Screen:" << screen->name() << "," << screen->geometry(); + // if (screen && screen->name() == strCurScreen) { + // isFoundScreen = true; + // moveToScreen(screen); + // break; + // } + // } + // } else { + QPoint cursor = QCursor::pos(); + for (auto screen : QApplication::screens()) { + qDebug() << "Screen:" << screen->name() << "," << screen->geometry(); + if (screen && screen->geometry().contains(cursor)) { + isFoundScreen = true; + moveToScreen(screen); + break; } } + // } if (!isFoundScreen) { if (QApplication::primaryScreen()) { moveToScreen(QApplication::primaryScreen()); From 9bbefa40340755e6dc5458a4a571c27a01badf98 Mon Sep 17 00:00:00 2001 From: yangmin100 Date: Fri, 15 Nov 2024 16:54:59 +0800 Subject: [PATCH 2/2] update changelog --- debian/changelog | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index aab73ef..0d467e0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +ukui-biometric-auth (4.10.0.0-ok11) nile; urgency=medium + + * BUG号:#IB4M9L 修改密码等需要授权认证的操作直接失败,无法打开提权窗口 + * 需求号:无 + * 其他改动说明:无 + * 其他改动影响域:无 + + -- Yang Min Fri, 15 Nov 2024 16:52:41 +0800 + ukui-biometric-auth (4.10.0.0-ok10) nile; urgency=medium * BUG号:无