mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-09 23:15:58 +01:00
127ae00225
treewide: replace hint with callout treewide: remove ToC header remove <toc>, since it's autogenerated add missing _index.md treewide: add frontmatter treewide: fix headings add weights Configuring,Getting Started: expand in sidebar Add version selector fix links
41 lines
937 B
Markdown
41 lines
937 B
Markdown
---
|
|
weight: 14
|
|
title: XWayland
|
|
---
|
|
|
|
XWayland is the bridging mechanism between legacy Xorg programs and Wayland
|
|
compositors.
|
|
|
|
## HiDPI XWayland
|
|
|
|
XWayland currently looks pixelated on HiDPI screens, due to Xorg's inability to
|
|
scale.
|
|
|
|
This problem is mitigated by the
|
|
[`xwayland:force_zero_scaling`](../../configuring/variables/#xwayland) option,
|
|
which forces XWayland windows not to be scaled.
|
|
|
|
This will get rid of the pixelated look, but will not scale applications
|
|
properly. To do this, each toolkit has its own mechanism.
|
|
|
|
```ini
|
|
# change monitor to high resolution, the last argument is the scale factor
|
|
monitor=,highres,auto,2
|
|
|
|
# unscale XWayland
|
|
xwayland {
|
|
force_zero_scaling = true
|
|
}
|
|
|
|
# toolkit-specific scale
|
|
env = GDK_SCALE,2
|
|
env = XCURSOR_SIZE,32
|
|
```
|
|
|
|
The GDK_SCALE variable won't conflict with Wayland-native GTK programs.
|
|
|
|
{{< callout >}}
|
|
|
|
XWayland HiDPI patches are no longer supported. Do not use them.
|
|
|
|
{{</ callout >}}
|