~ruther/dwl

79dcc0d3271395fe1258d818718209254d846b1b — Tobias Bengfort 3 years ago d4e08c0
reset cursor mode when grabc is unmapped
1 files changed, 4 insertions(+), 0 deletions(-)

M dwl.c
M dwl.c => dwl.c +4 -0
@@ 2292,6 2292,10 @@ unmapnotify(struct wl_listener *listener, void *data)
{
	/* Called when the surface is unmapped, and should no longer be shown. */
	Client *c = wl_container_of(listener, c, unmap);
	if (c == grabc) {
		cursor_mode = CurNormal;
		grabc = NULL;
	}
	wl_list_remove(&c->link);
	if (client_is_unmanaged(c))
		return;