Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/plugin-qt/xsettings/impl/xsettingsmanager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2025 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "xsettingsmanager.h"
Expand Down Expand Up @@ -218,7 +218,13 @@ void XSettingsManager::handleDConfigChangedCb(const QString &key)
updateXResources();
} else if (key == "gtk-cursor-theme-size-base") {
int cursorSizeBase = m_settingDconfig->value(key).toInt();
m_settingDconfig->setValue("gtk-cursor-theme-size", cursorSizeBase);
double scale = m_settingDconfig->value(dcKeyScaleFactor).toDouble();
if (scale <= 0) {
qWarning() << "invalid scale factor:" << scale << ", fallback to 1.0";
scale = 1.0;
}
qDebug() << "update gtk-cursor-theme-size to" << cursorSizeBase * scale;
m_settingDconfig->setValue("gtk-cursor-theme-size", cursorSizeBase * scale);
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
return;
}

Expand Down