aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 16:13:26 -0400
committerGitHub <noreply@github.com>2018-04-06 16:13:26 -0400
commit640232eb225058a18f20190235f679caf678e1f7 (patch)
tree4323a9130346ca4d836b0ae70c03877e13310bfc /sway/input/seat.c
parent656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (diff)
Revert "Break everything^W^WUse wlr_box for sway_container"
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c4
1 files changed, 2 insertions, 2 deletions
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)) {