# linux: Use \`randr\` as fallback for scale factor in X11 \(\#34265\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/153840199ef563dac69065a5948ed8401265c9c8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 153840199ef563dac69065a5948ed8401265c9c8

Requested commit: 153840199ef563dac69065a5948ed8401265c9c8

Commit: 153840199ef563dac69065a5948ed8401265c9c8

Tree: 3cae473b1645ebce6b2a1d3126ba7cd3582cdd71

Author: Smit Barmase

Committer: GitHub

## Message

```
linux: Use `randr` as fallback for scale factor in X11 (#34265)

Closes #14537

- Adds server-side scale factor detection via `randr` when client-side
detection fails using `xrdb/Xft.dpi`.
- Adds the `GPUI_X11_SCALE_FACTOR` flag to force a scale factor, which
can be a positive number for custom scaling or `randr` for server-side
scale factor detection.

Release Notes:

- Fixed an issue where the scale factor was not detected correctly on
X11 systems when `Xft.dpi` is not defined (mostly in cases involving
window managers).
```

## Parents

- [8812e7cd148301fe9ac37eeb98658d9bef6bced0](https://git.cafe/gitcafe/zed/commit/8812e7cd148301fe9ac37eeb98658d9bef6bced0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/153840199ef563dac69065a5948ed8401265c9c8?format=markdown)
