aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-02 23:17:39 -0400
committerDrew DeVault <sir@cmpwn.com>2017-11-02 23:17:39 -0400
commitca8cf7d48dc8de94494e23292c1687c1dad766f2 (patch)
tree24926b5062da15c1ac27d83d47cce93ab82d3fb4 /rootston/output.c
parented74f473d60bb577aca9c7309664ae07d3ccf09b (diff)
Rethink HiDPI output layouts, fixes everything
Except for subsurfaces not rendering at the right scale. But that part is (somewhat) easy.
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 37af1e2d..c21c6781 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -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)) {