diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index d58ff9e6..bdab8b81 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1194,11 +1194,13 @@ void seat_consider_warp_to_focus(struct sway_seat *seat) { | |||
1194 | } | 1194 | } |
1195 | if (config->mouse_warping == WARP_OUTPUT) { | 1195 | if (config->mouse_warping == WARP_OUTPUT) { |
1196 | struct sway_output *output = node_get_output(focus); | 1196 | struct sway_output *output = node_get_output(focus); |
1197 | struct wlr_box box; | 1197 | if (output) { |
1198 | output_get_box(output, &box); | 1198 | struct wlr_box box; |
1199 | if (wlr_box_contains_point(&box, | 1199 | output_get_box(output, &box); |
1200 | seat->cursor->cursor->x, seat->cursor->cursor->y)) { | 1200 | if (wlr_box_contains_point(&box, |
1201 | return; | 1201 | seat->cursor->cursor->x, seat->cursor->cursor->y)) { |
1202 | return; | ||
1203 | } | ||
1202 | } | 1204 | } |
1203 | } | 1205 | } |
1204 | 1206 | ||