mirror of
https://github.com/swaywm/sway.git
synced 2025-01-05 23:54:15 +00:00
Merge pull request #2493 from RyanDwyer/fix-popup-position
Fix popup position when parent uses geometry
This commit is contained in:
commit
8db6c68db6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue