typedef struct { WINDOW *first; /* First window */ WINDOW *front; /* Topped window */ WINDOW *appfront; /* Relative application topped window */ } WINvar; extern WINvar wglb;Each field of wglb can be NULL. The front window is the window in the foreground, it could be NULL if the topped window don't belong to our application. The appfront window is the topped window in our application but a window of an another application may be in the foreground.