diff options
author | Ivan Chebykin <ivan@chebykin.org> | 2018-05-26 15:54:49 +0300 |
---|---|---|
committer | Ivan Chebykin <ivan@chebykin.org> | 2018-05-26 15:54:49 +0300 |
commit | 464ec44b005aa7584c9240cb9721382d23d288cf (patch) | |
tree | 3af090525ab1fde83d58930949f26621a53ca842 /sway/input/cursor.c | |
parent | 6e6b0decd95eb3fd4b336817839c08a2c71c7505 (diff) |
Check for next_focus before assert
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 2 |
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, if (!do_mouse_focus) { struct sway_container *next_focus = seat_get_focus_inactive( cursor->seat, p); - if(!sway_assert(next_focus->type == C_VIEW, + if(next_focus && !sway_assert(next_focus->type == C_VIEW, "focus inactive container is not a view")) { return; } |