wlroots/backend
Anatolii Smolianinov 514eeebd3c 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

Implements: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/854
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5186
Co-Authored-By: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
2026-06-07 21:57:02 +02:00
..
drm Drop "restrict" keyword 2026-05-25 08:42:35 +00:00
headless treewide: make type-check helpers take const pointers 2026-03-06 16:04:21 +08:00
libinput backend/libinput: expose libinput context 2026-05-21 15:23:30 +00:00
multi treewide: make type-check helpers take const pointers 2026-03-06 16:04:21 +08:00
session Drop "restrict" keyword 2026-05-25 08:42:35 +00:00
wayland backend/wayland: Fix HiDPI support for nested compositors 2026-06-07 21:57:02 +02:00
x11 wl_event_loop_add_fd: Only watch for READABLE & WRITABLE 2026-05-21 15:07:21 +00:00
backend.c backend, output: send commit events after applying all in wlr_backend_commit() 2025-08-12 19:04:05 +02:00
meson.build backend/session: make optional 2022-11-25 16:15:29 +00:00