commit
bf4cd34bc7
|
@ -1,3 +1,12 @@
|
||||||
|
ukui-biometric-auth (4.10.0.0-ok11) nile; urgency=medium
|
||||||
|
|
||||||
|
* BUG号:#IB4M9L 修改密码等需要授权认证的操作直接失败,无法打开提权窗口
|
||||||
|
* 需求号:无
|
||||||
|
* 其他改动说明:无
|
||||||
|
* 其他改动影响域:无
|
||||||
|
|
||||||
|
-- Yang Min <yangmin@kylinos.cn> Fri, 15 Nov 2024 16:52:41 +0800
|
||||||
|
|
||||||
ukui-biometric-auth (4.10.0.0-ok10) nile; urgency=medium
|
ukui-biometric-auth (4.10.0.0-ok10) nile; urgency=medium
|
||||||
|
|
||||||
* BUG号:无
|
* BUG号:无
|
||||||
|
|
|
@ -338,27 +338,27 @@ void FullScreenBackground::moveToScreen(QScreen *screen)
|
||||||
void FullScreenBackground::moveToCursorScreen()
|
void FullScreenBackground::moveToCursorScreen()
|
||||||
{
|
{
|
||||||
bool isFoundScreen = false;
|
bool isFoundScreen = false;
|
||||||
if (m_isWayland) {
|
// if (m_isWayland) {
|
||||||
QString strCurScreen = WindowManager::currentOutputName();
|
// QString strCurScreen = WindowManager::currentOutputName();
|
||||||
for (auto screen : QApplication::screens()) {
|
// for (auto screen : QApplication::screens()) {
|
||||||
qDebug() << "Screen:" << screen->name() << "," << screen->geometry();
|
// qDebug() << "Screen:" << screen->name() << "," << screen->geometry();
|
||||||
if (screen && screen->name() == strCurScreen) {
|
// if (screen && screen->name() == strCurScreen) {
|
||||||
isFoundScreen = true;
|
// isFoundScreen = true;
|
||||||
moveToScreen(screen);
|
// moveToScreen(screen);
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
QPoint cursor = QCursor::pos();
|
QPoint cursor = QCursor::pos();
|
||||||
for (auto screen : QApplication::screens()) {
|
for (auto screen : QApplication::screens()) {
|
||||||
qDebug() << "Screen:" << screen->name() << "," << screen->geometry();
|
qDebug() << "Screen:" << screen->name() << "," << screen->geometry();
|
||||||
if (screen && screen->geometry().contains(cursor)) {
|
if (screen && screen->geometry().contains(cursor)) {
|
||||||
isFoundScreen = true;
|
isFoundScreen = true;
|
||||||
moveToScreen(screen);
|
moveToScreen(screen);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
if (!isFoundScreen) {
|
if (!isFoundScreen) {
|
||||||
if (QApplication::primaryScreen()) {
|
if (QApplication::primaryScreen()) {
|
||||||
moveToScreen(QApplication::primaryScreen());
|
moveToScreen(QApplication::primaryScreen());
|
||||||
|
|
Loading…
Reference in New Issue