diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-26 10:35:15 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-05-26 10:35:15 -0400 |
commit | fea654a6ce4d618bfd0cc9b5d78d0726802889ec (patch) | |
tree | 6b89a2ddfc7722b20e9a1e563ddd1c8477c6bd8f | |
parent | 1531eb317110e4e1358f203b0ce114f67a10b5d8 (diff) | |
download | sway-fea654a6ce4d618bfd0cc9b5d78d0726802889ec.tar.xz |
Replace oft-failing abort with if statement
Fixes #2045
-rw-r--r-- | sway/input/cursor.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 98780989..1cf432f3 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -161,15 +161,12 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, if (output != focus) { seat_set_focus_warp(cursor->seat, c, false); } - } else { + } else if (c->type == C_VIEW) { // Don't switch focus on title mouseover for // stacked and tabbed layouts // If pointed container is in nested containers which are // inside tabbed/stacked layout we should skip them bool do_mouse_focus = true; - if(!sway_assert(c->type == C_VIEW, "pointed container is not a view")) { - return; - } bool is_visible = view_is_visible(c->sway_view); struct sway_container *p = c->parent; while (p) { |