hyprland-wiki/pages/Configuring/XWayland.md

42 lines
922 B
Markdown
Raw Normal View History

---
weight: 14
title: XWayland
---
2022-08-29 19:27:32 +02:00
XWayland is the bridging mechanism between legacy Xorg programs and Wayland
compositors.
2023-08-01 23:02:05 +02:00
## HiDPI XWayland
2022-08-29 19:27:32 +02:00
2023-08-01 23:02:05 +02:00
XWayland currently looks pixelated on HiDPI screens, due to Xorg's inability to
scale.
2022-08-29 19:27:32 +02:00
This problem is mitigated by the
2024-03-17 13:44:39 +01:00
[`xwayland:force_zero_scaling`](../Variables/#xwayland) option,
which forces XWayland windows not to be scaled.
2023-03-05 15:53:44 +01:00
2023-08-01 23:02:05 +02:00
This will get rid of the pixelated look, but will not scale applications
properly. To do this, each toolkit has its own mechanism.
2022-08-29 19:27:32 +02:00
2023-08-01 23:02:05 +02:00
```ini
# change monitor to high resolution, the last argument is the scale factor
monitor=,highres,auto,2
2022-08-29 19:27:32 +02:00
2023-08-01 23:02:05 +02:00
# unscale XWayland
xwayland {
force_zero_scaling = true
}
2022-08-29 19:27:32 +02:00
2023-08-01 23:02:05 +02:00
# toolkit-specific scale
env = GDK_SCALE,2
env = XCURSOR_SIZE,32
```
2022-08-29 19:27:32 +02:00
2023-08-01 23:02:05 +02:00
The GDK_SCALE variable won't conflict with Wayland-native GTK programs.
{{< callout >}}
2023-08-01 23:02:05 +02:00
XWayland HiDPI patches are no longer supported. Do not use them.
{{</ callout >}}