diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-30 21:20:31 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-05 18:01:43 +1000 |
commit | acc2628c799170dea98380cda2237137137f182f (patch) | |
tree | b28b186339b90b75a767b96c780f9a643ff70204 /sway/desktop/xdg_shell.c | |
parent | Implement type safe arguments and demote sway_container (diff) | |
download | sway-acc2628c799170dea98380cda2237137137f182f.tar.gz sway-acc2628c799170dea98380cda2237137137f182f.tar.zst sway-acc2628c799170dea98380cda2237137137f182f.zip |
Don't use wlr_output properties
These properties are before rotation.
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index e19d8e18..575f229d 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -59,10 +59,10 @@ static void popup_unconstrain(struct sway_xdg_popup *popup) { | |||
59 | // the output box expressed in the coordinate system of the toplevel parent | 59 | // the output box expressed in the coordinate system of the toplevel parent |
60 | // of the popup | 60 | // of the popup |
61 | struct wlr_box output_toplevel_sx_box = { | 61 | struct wlr_box output_toplevel_sx_box = { |
62 | .x = output->wlr_output->lx - view->x, | 62 | .x = output->lx - view->x, |
63 | .y = output->wlr_output->ly - view->y, | 63 | .y = output->ly - view->y, |
64 | .width = output->wlr_output->width, | 64 | .width = output->width, |
65 | .height = output->wlr_output->height, | 65 | .height = output->height, |
66 | }; | 66 | }; |
67 | 67 | ||
68 | wlr_xdg_popup_unconstrain_from_box(wlr_popup, &output_toplevel_sx_box); | 68 | wlr_xdg_popup_unconstrain_from_box(wlr_popup, &output_toplevel_sx_box); |