Open tv42 opened 10 years ago
That's fair. What is the expected behavior?
Good question! The only place that currently returns errors is NewConn, which may be too early. Maybe DefaultScreen needs an error return?
That would be a breaking change, unfortunately. I haven't really implemented any versioning scheme yet, but XGB has been stable for long enough that I really don't want to introduce any breaking changes without really good reason.
Validate it in Conn.connect? I don't know if that would add round-trips.
It seems setup.DefaultScreen does not check before assuming that DISPLAY is valid.