Use a proper error type for window creation
Merge pull request #100 from tomaka/correct-creation-error

Use a proper error type for window creation