Figure 1. Application to Test Window Manager Participation in Window Creation and Deletion /* WMTEST.C */ /* Written by Glenn Wolf for X Capacity study */ /* Intended to test window creation/destruction impact */ /* Generates and destroys 20 windows n times (input n) */ #include #include #define numShells 20 Display *display; XtAppContext ctx; Widget shells[numShells]; long iterations = 1; long totalIterations = 1; void exit(long); Boolean addAShell (currentShell) long currentShell; { Arg args[12]; long argCnt = 0; char str[100]; Widget mw; if (shells[currentShell]) { XtDestroyWidget(shells[currentShell]); shells[currentShell] = 0; if (currentShell == numShells - 1) --iterations; } else {