Added WindowProc for detecting display changes

Reference: https://github.com/fuhsjr00/bug.n/issues/7