diff options
author | 2018-08-30 21:20:31 +1000 | |
---|---|---|
committer | 2018-09-05 18:01:43 +1000 | |
commit | acc2628c799170dea98380cda2237137137f182f (patch) | |
tree | b28b186339b90b75a767b96c780f9a643ff70204 /sway/desktop/xdg_shell_v6.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_v6.c')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index b23d4577..58fbd631 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c | |||
@@ -58,10 +58,10 @@ static void popup_unconstrain(struct sway_xdg_popup_v6 *popup) { | |||
58 | // the output box expressed in the coordinate system of the toplevel parent | 58 | // the output box expressed in the coordinate system of the toplevel parent |
59 | // of the popup | 59 | // of the popup |
60 | struct wlr_box output_toplevel_sx_box = { | 60 | struct wlr_box output_toplevel_sx_box = { |
61 | .x = output->wlr_output->lx - view->x, | 61 | .x = output->lx - view->x, |
62 | .y = output->wlr_output->ly - view->y, | 62 | .y = output->ly - view->y, |
63 | .width = output->wlr_output->width, | 63 | .width = output->width, |
64 | .height = output->wlr_output->height, | 64 | .height = output->height, |
65 | }; | 65 | }; |
66 | 66 | ||
67 | wlr_xdg_popup_v6_unconstrain_from_box(wlr_popup, &output_toplevel_sx_box); | 67 | wlr_xdg_popup_v6_unconstrain_from_box(wlr_popup, &output_toplevel_sx_box); |