diff options
author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-08-19 16:07:11 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-19 16:07:11 +1000 |
commit | 7f22fab3895ff090d5e26936f4e964e081090164 (patch) | |
tree | c5d96041e3270b1d1d50f8a42d91652d615c9938 /sway/desktop/output.c | |
parent | 37e37627cae0a23d9f763cc56378b528f2ff3885 (diff) | |
parent | d0a24465d75cc7197ee253e1de9fa961071cd034 (diff) | |
download | sway-7f22fab3895ff090d5e26936f4e964e081090164.tar.xz |
Merge branch 'master' into commands
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 43ed9793..1e4f196b 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -144,15 +144,16 @@ void output_view_for_each_surface(struct sway_output *output, .user_iterator = iterator, .user_data = user_data, .output = output, - .ox = view->swayc->current.view_x - output->swayc->current.swayc_x, - .oy = view->swayc->current.view_y - output->swayc->current.swayc_y, + .ox = view->swayc->current.view_x - output->swayc->current.swayc_x + - view->geometry.x, + .oy = view->swayc->current.view_y - output->swayc->current.swayc_y + - view->geometry.y, .width = view->swayc->current.view_width, .height = view->swayc->current.view_height, .rotation = 0, // TODO }; - view_for_each_surface(view, - output_for_each_surface_iterator, &data); + view_for_each_surface(view, output_for_each_surface_iterator, &data); } void output_view_for_each_popup(struct sway_output *output, |