mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Fix mouse warping interaction with layout coords
This commit is contained in:
parent
c9f8d35ca9
commit
e605dc43bb
|
@ -601,10 +601,8 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
||||||
|
|
||||||
if (config->mouse_warping && warp) {
|
if (config->mouse_warping && warp) {
|
||||||
if (new_output && last_output && new_output != last_output) {
|
if (new_output && last_output && new_output != last_output) {
|
||||||
double x = new_output->x + container->x +
|
double x = container->x + container->width / 2.0;
|
||||||
container->width / 2.0;
|
double y = container->y + container->height / 2.0;
|
||||||
double y = new_output->y + container->y +
|
|
||||||
container->height / 2.0;
|
|
||||||
struct wlr_output *wlr_output =
|
struct wlr_output *wlr_output =
|
||||||
new_output->sway_output->wlr_output;
|
new_output->sway_output->wlr_output;
|
||||||
if (!wlr_output_layout_contains_point(
|
if (!wlr_output_layout_contains_point(
|
||||||
|
|
Loading…
Reference in a new issue