diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 15:57:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 15:57:57 -0400 |
commit | 656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (patch) | |
tree | 243104969dc80855d313faf5a0d360dd5508dc52 /sway/input | |
parent | d447460c0153a76a0bc484bb9866cef658b3102f (diff) | |
parent | 764489e73760534d49760af123cae46109564e86 (diff) |
Merge pull request #1757 from swaywm/boooooooxes
Break everything^W^WUse wlr_box for sway_container
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index ad3584a0..44a471bd 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; - double x = container->x + output->lx + container->width / 2.0; - double y = container->y + output->ly + container->height / 2.0; + int x = container->box.x + output->lx + container->box.width / 2; + int y = container->box.y + output->ly + container->box.height / 2; if (!wlr_output_layout_contains_point( root_container.sway_root->output_layout, output, seat->cursor->cursor->x, seat->cursor->cursor->y)) { |