diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-07-24 07:50:55 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-07-24 07:50:55 -0400 |
| commit | e4967b4077a8e1efbc70b4b987ab56de4ea6546c (patch) | |
| tree | d4f05f94a3b549eb66214022525527804ca7a7f6 | |
| parent | bac28c184ebc13f3659831e84904bed485e8a374 (diff) | |
| parent | 0435d94111ebe072e0b3962106ad461d08eaa254 (diff) | |
Merge pull request #2346 from RyanDwyer/fix-crash-on-click
Fix crash when clicking certain surfaces
| -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 8a6299cf..27597640 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -570,7 +570,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor, cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); // Handle mouse bindings - bool on_border = find_resize_edge(cont, cursor) != WLR_EDGE_NONE; + bool on_border = cont && (find_resize_edge(cont, cursor) != WLR_EDGE_NONE); bool on_contents = !on_border && surface; bool on_titlebar = !on_border && !surface; struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(cursor->seat->wlr_seat); |
