From 640232eb225058a18f20190235f679caf678e1f7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 6 Apr 2018 16:13:26 -0400 Subject: Revert "Break everything^W^WUse wlr_box for sway_container" --- sway/input/seat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/input/seat.c') diff --git a/sway/input/seat.c b/sway/input/seat.c index 44a471bd..ad3584a0 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -415,8 +415,8 @@ void seat_set_focus_warp(struct sway_seat *seat, if (new_output && last_output && new_output != last_output && config->mouse_warping && warp) { struct wlr_output *output = new_output->sway_output->wlr_output; - int x = container->box.x + output->lx + container->box.width / 2; - int y = container->box.y + output->ly + container->box.height / 2; + double x = container->x + output->lx + container->width / 2.0; + double y = container->y + output->ly + container->height / 2.0; if (!wlr_output_layout_contains_point( root_container.sway_root->output_layout, output, seat->cursor->cursor->x, seat->cursor->cursor->y)) { -- cgit v1.2.3