Help for Lab-1 X11 stuff Additions to your xwin89.c source... These additions will make your program run much more efficiently on Odin. 1. Add this include file: #include <unistd.h> 2. Add in main() at the bottom-inside of the outer while-loop. Inside the outer loop. Not inside the inner loop. usleep(2000); 3. Add this to the end of your gcc build line in Makefile: -D _DEFAULT_SOURCE Note: Set the color just before drawing your name and the box. The render() function shows you how to set the color. Insert the 3 functions below into your program. One will be used to fill the window with a yellow color. One will be used to draw your name. One will be used to draw a rectangle around your name. void drawRectangle(int x, int y, int w, int h) { XDrawRectangle(g.dpy, g.win, g.gc, x, y, w, h); } void fillRectangle(int x, int y, int w, int h) { XFillRectangle(g.dpy, g.win, g.gc, x, y, w, h); } void drawText(int x, int y, const char *text) { XDrawString(g.dpy, g.win, g.gc, x, y, text, strlen(text)); } If you need more help, let me know.