I'm using X11 and when I run my program the window displays fine, but when I quit the following error is outputted in the console:
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0" after 58 requests (58 known processed) with 0 events remaining.
I have looked in the documentation but I can't find out anything on what this actually means.