Fix popup position when parent uses geometry

Fixes #2489.
This commit is contained in:
Ryan Dwyer 2018-08-19 21:09:39 +10:00
parent 2c91afbb34
commit 76bdb21ca9

View File

@ -163,8 +163,10 @@ void output_view_for_each_popup(struct sway_output *output,
.user_iterator = iterator, .user_iterator = iterator,
.user_data = user_data, .user_data = user_data,
.output = output, .output = output,
.ox = view->swayc->current.view_x - output->swayc->current.swayc_x, .ox = view->swayc->current.view_x - output->swayc->current.swayc_x
.oy = view->swayc->current.view_y - output->swayc->current.swayc_y, - view->geometry.x,
.oy = view->swayc->current.view_y - output->swayc->current.swayc_y
- view->geometry.y,
.width = view->swayc->current.view_width, .width = view->swayc->current.view_width,
.height = view->swayc->current.view_height, .height = view->swayc->current.view_height,
.rotation = 0, // TODO .rotation = 0, // TODO