aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-31 19:16:49 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commiteccfcde2ebf8d54f181825db04e27a3898983de4 (patch)
treeb808ccdc68eccc2b58919b92114b99a49ffb1dcf /sway/input/cursor.c
parentFix moving workspace to output (diff)
downloadsway-eccfcde2ebf8d54f181825db04e27a3898983de4.tar.gz
sway-eccfcde2ebf8d54f181825db04e27a3898983de4.tar.zst
sway-eccfcde2ebf8d54f181825db04e27a3898983de4.zip
Fix crash when moving mouse over a fullscreen split container
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 15993265..5b09d646 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -464,7 +464,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
464 struct sway_node *next_focus = 464 struct sway_node *next_focus =
465 seat_get_focus_inactive(seat, &root->node); 465 seat_get_focus_inactive(seat, &root->node);
466 if (next_focus && next_focus->type == N_CONTAINER && 466 if (next_focus && next_focus->type == N_CONTAINER &&
467 node->sway_container->view && 467 next_focus->sway_container->view &&
468 view_is_visible(next_focus->sway_container->view)) { 468 view_is_visible(next_focus->sway_container->view)) {
469 seat_set_focus_warp(seat, next_focus, false, true); 469 seat_set_focus_warp(seat, next_focus, false, true);
470 } 470 }