bugfix: get right layout box for rendering views

This commit is contained in:
Tony Crisci 2018-02-19 17:55:16 -05:00
parent 359bab38e2
commit b88f06e70a
2 changed files with 5 additions and 2 deletions

View file

@ -51,7 +51,7 @@ static void render_surface(struct wlr_surface *surface,
// FIXME: view coords are inconsistently assumed to be in output or layout coords
struct wlr_box layout_box = {
.x = lx + owidth, .y = ly + oheight,
.x = lx + wlr_output->lx, .y = ly + wlr_output->ly,
.width = render_width, .height = render_height,
};
if (wlr_output_layout_intersects(layout, wlr_output, &layout_box)) {