aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/input/seat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 6a266fba..d35cbeef 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -601,10 +601,8 @@ void seat_set_focus_warp(struct sway_seat *seat,
601 601
602 if (config->mouse_warping && warp) { 602 if (config->mouse_warping && warp) {
603 if (new_output && last_output && new_output != last_output) { 603 if (new_output && last_output && new_output != last_output) {
604 double x = new_output->x + container->x + 604 double x = container->x + container->width / 2.0;
605 container->width / 2.0; 605 double y = container->y + container->height / 2.0;
606 double y = new_output->y + container->y +
607 container->height / 2.0;
608 struct wlr_output *wlr_output = 606 struct wlr_output *wlr_output =
609 new_output->sway_output->wlr_output; 607 new_output->sway_output->wlr_output;
610 if (!wlr_output_layout_contains_point( 608 if (!wlr_output_layout_contains_point(