mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Rethink HiDPI output layouts, fixes everything
Except for subsurfaces not rendering at the right scale. But that part is (somewhat) easy.
This commit is contained in:
parent
ed74f473d6
commit
ca8cf7d48d
3 changed files with 10 additions and 6 deletions
|
|
@ -25,6 +25,8 @@ static void render_surface(struct wlr_surface *surface,
|
|||
int height = surface->current->buffer_height * scale_factor;
|
||||
double ox = lx, oy = ly;
|
||||
wlr_output_layout_output_coords(desktop->layout, wlr_output, &ox, &oy);
|
||||
ox *= wlr_output->scale;
|
||||
oy *= wlr_output->scale;
|
||||
|
||||
if (wlr_output_layout_intersects(desktop->layout, wlr_output,
|
||||
lx, ly, lx + width, ly + height)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue