diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-19 21:09:39 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-19 21:09:39 +1000 |
commit | 76bdb21ca9ea377a8196a33adfcd3077fbcc57c5 (patch) | |
tree | b92712fd22aba54f7b3fbd30d9374fd2a997a9e5 /sway | |
parent | 2c91afbb34f649fcd4de690be5bedba4d989a7f0 (diff) |
Fix popup position when parent uses geometry
Fixes #2489.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 2253eb51..3d8bbff5 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -163,8 +163,10 @@ void output_view_for_each_popup(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 |