sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 347f7cb4c1edb3c4a6c38ffb3f9dcdd98f37e475
parent 354731f1616ec76385d3472bd0bf188f5a350796
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 24 Jul 2018 07:50:55 -0400

Merge pull request #2346 from RyanDwyer/fix-crash-on-click

Fix crash when clicking certain surfaces
Diffstat:
Msway/input/cursor.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);