diff options
author | 2018-02-19 17:55:16 -0500 | |
---|---|---|
committer | 2018-02-19 17:55:16 -0500 | |
commit | b88f06e70a62722e70855772dcfa5b20b3a10291 (patch) | |
tree | 1e57c24777f3ab453e7dcdd4aea94dc0667cbd90 /sway/desktop/output.c | |
parent | Merge branch 'focus-overhaul' of github.com:acrisci/sway into focus-overhaul (diff) | |
download | sway-b88f06e70a62722e70855772dcfa5b20b3a10291.tar.gz sway-b88f06e70a62722e70855772dcfa5b20b3a10291.tar.zst sway-b88f06e70a62722e70855772dcfa5b20b3a10291.zip |
bugfix: get right layout box for rendering views
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index a3d9efd8..039aba25 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -51,7 +51,7 @@ static void render_surface(struct wlr_surface *surface, | |||
51 | 51 | ||
52 | // FIXME: view coords are inconsistently assumed to be in output or layout coords | 52 | // FIXME: view coords are inconsistently assumed to be in output or layout coords |
53 | struct wlr_box layout_box = { | 53 | struct wlr_box layout_box = { |
54 | .x = lx + owidth, .y = ly + oheight, | 54 | .x = lx + wlr_output->lx, .y = ly + wlr_output->ly, |
55 | .width = render_width, .height = render_height, | 55 | .width = render_width, .height = render_height, |
56 | }; | 56 | }; |
57 | if (wlr_output_layout_intersects(layout, wlr_output, &layout_box)) { | 57 | if (wlr_output_layout_intersects(layout, wlr_output, &layout_box)) { |