summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 62967cb8..98780989 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -183,7 +183,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
183 if (!do_mouse_focus) { 183 if (!do_mouse_focus) {
184 struct sway_container *next_focus = seat_get_focus_inactive( 184 struct sway_container *next_focus = seat_get_focus_inactive(
185 cursor->seat, p); 185 cursor->seat, p);
186 if(!sway_assert(next_focus->type == C_VIEW, 186 if(next_focus && !sway_assert(next_focus->type == C_VIEW,
187 "focus inactive container is not a view")) { 187 "focus inactive container is not a view")) {
188 return; 188 return;
189 } 189 }