Prevent mouse buttons from sticking

This should fix two cases where mpv doesn't detect mouse-up messages.