The man behind the fellow trying to sleep is tickling his ear with a shaft of wheat.
He brushes at the annoyance "in his sleep" while his buddy seems to enjoy the practical joke.