mir: set event source device as well
mir: check the log events env variable just once