Application can be hidden

This is to prevent unnecessary event listener calls when the whole
canvas is hidden.