Clean up XLib window impl
- Fix compiler warning for depricated function call