diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-29 20:50:02 -0400 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | e605dc43bb4880fa3f36a9d4eee94e985150baa0 (patch) | |
tree | bd87d6f824d9c9cb44ada4d74c59b4e1cd94c542 /sway | |
parent | c9f8d35ca9b74dc7b059b097a6e55441d7405a77 (diff) |
Fix mouse warping interaction with layout coords
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/seat.c | 6 |
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, if (config->mouse_warping && warp) { if (new_output && last_output && new_output != last_output) { - double x = new_output->x + container->x + - container->width / 2.0; - double y = new_output->y + container->y + - container->height / 2.0; + double x = container->x + container->width / 2.0; + double y = container->y + container->height / 2.0; struct wlr_output *wlr_output = new_output->sway_output->wlr_output; if (!wlr_output_layout_contains_point( |