wlroots/backend/wayland
Anatolii Smolianinov f758cd1115
backend/wayland: Fix HiDPI support for nested compositors
When running a wlroots-based compositor nested under another Wayland
compositor with HiDPI scaling, the nested window appears blurry and
incorrectly sized. This is because the Wayland backend does not:

1. Detect and track the parent compositor's output scale
2. Set wl_surface_set_buffer_scale() to match the parent's scale
3. Multiply output dimensions by the scale factor when handling
   configure events

This patch fixes all three issues by:

- Adding wlr_wl_parent_output structure to track parent outputs
- Listening to wl_output.scale events from the parent compositor
- Setting buffer_scale on all backend surfaces (output and layers)
- Scaling output dimensions to account for buffer scale
- Setting wlr_output.scale so nested clients render at correct DPI

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/854
2025-10-30 11:13:32 +01:00
..
backend.c backend/wayland: Fix HiDPI support for nested compositors 2025-10-30 11:13:32 +01:00
meson.build meson: use kwargs for wayland deps 2024-11-21 16:46:55 +00:00
output.c backend/wayland: Fix HiDPI support for nested compositors 2025-10-30 11:13:32 +01:00
pointer.c pointer: release pressed buttons on destroy 2024-09-24 19:53:54 +00:00
seat.c backend/wayland: simplify wl_keyboard.{enter,leave} processing 2024-08-15 18:33:00 +00:00
tablet_v2.c Switch to stable tablet-v2 protocol 2024-06-27 18:04:00 +00:00