1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

compossitor: fix scale check

This commit is contained in:
bbedward
2025-11-08 08:06:42 -05:00
parent 44a6cd88cd
commit 9314de4772
3 changed files with 3 additions and 4 deletions

View File

@@ -29,7 +29,6 @@ Singleton {
property bool _hasRefreshedOnce: false
property var _coordCache: ({})
readonly property bool _qtDpiOverridden: Quickshell.env("QT_WAYLAND_FORCE_DPI") !== ""
property int _refreshCount: 0
property real _refreshWindowStart: 0
readonly property int _maxRefreshesPerSecond: 3
@@ -37,7 +36,7 @@ Singleton {
function getScreenScale(screen) {
if (!screen) return 1
if (_qtDpiOverridden) {
if (Quickshell.env("QT_WAYLAND_FORCE_DPI")) {
return screen.devicePixelRatio || 1
}