added parameter for draw listener for linux