Skip to content

Commit f75060e

Browse files
committed
feat: set a fixed cursor size on Wayland
设置固定24大小,当屏幕缩放时,Qt会自动对24进行缩放 pms: BUG-291607
1 parent c713972 commit f75060e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dde-session/environmentsmanager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ void EnvironmentsManager::createGeneralEnvironments()
9292
} else if (sessionType == "wayland") {
9393
m_envMap.insert("QT_QPA_PLATFORM", "wayland");
9494
m_envMap.insert("QT_WAYLAND_SHELL_INTEGRATION", "xdg-shell;wl-shell;ivi-shell;qt-shell;");
95+
m_envMap.insert("XCURSOR_SIZE", "24");
9596
}
9697

9798
}

0 commit comments

Comments
 (0)