vcl: split window.cxx into event and settings functions

Change-Id: Ic038a1c95721d4e578face5deea0b8d8a4ab7304