diff options
author | emersion <contact@emersion.fr> | 2018-08-19 21:51:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-19 21:51:53 +0100 |
commit | 8db6c68db640e8535ed71a0369323538f0910d7e (patch) | |
tree | a04d9b9253984ad951e8c301538be2622a6a2b1b | |
parent | 9f913614cad6d157bbf33b012093dda6f3e7665e (diff) | |
parent | 76bdb21ca9ea377a8196a33adfcd3077fbcc57c5 (diff) | |
download | sway-8db6c68db640e8535ed71a0369323538f0910d7e.tar.xz |
Merge pull request #2493 from RyanDwyer/fix-popup-position
Fix popup position when parent uses geometry
-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 |