Changed the WindowEvent struct and path

Changed WindowEvent to use a special WindowEventType int
Changed WindowEvent processing to make WindowList update properly
Added a small delay after processing lines to fix graphics errors (YAY)