summaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
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,
415 if (new_output && last_output && new_output != last_output 415 if (new_output && last_output && new_output != last_output
416 && config->mouse_warping && warp) { 416 && config->mouse_warping && warp) {
417 struct wlr_output *output = new_output->sway_output->wlr_output; 417 struct wlr_output *output = new_output->sway_output->wlr_output;
418 int x = container->box.x + output->lx + container->box.width / 2; 418 double x = container->x + output->lx + container->width / 2.0;
419 int y = container->box.y + output->ly + container->box.height / 2; 419 double y = container->y + output->ly + container->height / 2.0;
420 if (!wlr_output_layout_contains_point( 420 if (!wlr_output_layout_contains_point(
421 root_container.sway_root->output_layout, 421 root_container.sway_root->output_layout,
422 output, seat->cursor->cursor->x, seat->cursor->cursor->y)) { 422 output, seat->cursor->cursor->x, seat->cursor->cursor->y)) {