diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-02 23:34:26 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-02 23:36:36 +1000 |
commit | 787f08da7ff9ecb325def2e3a44dc5043d7e2753 (patch) | |
tree | becf792130769384e5a104cef540b1f2d7da00b4 /sway | |
parent | 8392eae40f17e550338b8b7058d8e9c1a6ad4f78 (diff) |
Convert toplevel coordinates to output-local
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 1f374740..cdac9c72 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -194,7 +194,8 @@ static void render_view_toplevels(struct sway_view *view, }; // Render all toplevels without descending into popups output_surface_for_each_surface(output, view->surface, - view->swayc->current.view_x, view->swayc->current.view_y, + view->swayc->current.view_x - output->wlr_output->lx, + view->swayc->current.view_y - output->wlr_output->ly, render_surface_iterator, &data); } |