Hey,
There's a XFree(screen); at the bottom of the first example. This can cause a segmentation fault when calling XCloseDisplay(display). Took me a few minutes to debug that. You aren't supposed to free the screen pointer, and since you don't do it in the other examples, i'm guessing this is just a leftover. Great tutorial, by the way.
Hey,
There's a
XFree(screen);at the bottom of the first example. This can cause a segmentation fault when callingXCloseDisplay(display). Took me a few minutes to debug that. You aren't supposed to free the screen pointer, and since you don't do it in the other examples, i'm guessing this is just a leftover. Great tutorial, by the way.