rem: if (!initedApp) { W_InitApplication(screen); initedApp = 1; }
context: WMCreateWindowWithStyle(WMScreen *screen, char *name, int style){    _Window *win;    static int initedApp = 0;    win = wmalloc(sizeof(_Window));    memset(win, 0, sizeof(_Window));    win->widgetClass = WC_Window;    win->view = W_CreateTopView(screen);    if (!win->view) {	free(win);	return NULL;    }    win->view->self = win;    win->wname = wstrdup(name);    /* add to the window list of the screen (application) */    win->nextPtr = screen->windowList;    screen->windowList = win;    WMCreateEventHandler(win->view, ExposureMask|StructureNotifyMask			 |ClientMessageMask|FocusChangeMask, handleEvents, 			 win);    W_ResizeView(win->view, DEFAULT_WIDTH, DEFAULT_HEIGHT);    if (!initedApp) {	W_InitApplication(screen);	initedApp = 1;    }        WMAddNotificationObserver(realizeObserver, win,			      WMViewRealizedNotification, win->view);    win->flags.style = style;    win->level = WMNormalWindowLevel;    /* kluge. Find a better solution */    W_SetFocusOfTopLevel(win->view, win->view);    return win;}