Lines Matching defs:topLevelPtr
24 TkWindow *topLevelPtr; /* Information about top-level window. */
48 static void ChangeXFocus _ANSI_ARGS_((TkWindow *topLevelPtr,
84 TkWindow *newPtr, *focusWinPtr, *topLevelPtr;
162 for (topLevelPtr = newPtr; topLevelPtr != NULL;
163 topLevelPtr = topLevelPtr->parentPtr) {
164 if (topLevelPtr->flags & TK_TOP_LEVEL) {
167 if (focusPtr->topLevelPtr == topLevelPtr) {
172 interp->result = topLevelPtr->pathName;
289 if (focusPtr->topLevelPtr == winPtr) {
295 focusPtr->topLevelPtr = focusPtr->focusWinPtr = winPtr;
411 TkWindow *topLevelPtr, *topLevelPtr2;
422 for (topLevelPtr = winPtr; ; topLevelPtr = topLevelPtr->parentPtr) {
423 if (topLevelPtr == NULL) {
431 if (topLevelPtr->flags & TK_TOP_LEVEL) {
437 if (focusPtr->topLevelPtr == topLevelPtr) {
443 focusPtr->topLevelPtr = topLevelPtr;
477 if ((topLevelPtr2 != topLevelPtr)
478 && !(topLevelPtr->atts.override_redirect)) {
485 if (topLevelPtr->flags & TK_MAPPED) {
486 ChangeXFocus(topLevelPtr, force);
494 Tk_CreateEventHandler((Tk_Window) topLevelPtr,
496 (ClientData) topLevelPtr);
497 dispPtr->focusOnMapPtr = topLevelPtr;
590 if (winPtr == focusPtr->topLevelPtr) {
600 focusPtr->topLevelPtr->pathName);
608 if (dispPtr->focusOnMapPtr == focusPtr->topLevelPtr) {
624 focusPtr->focusWinPtr = focusPtr->topLevelPtr;
626 && !(focusPtr->topLevelPtr->flags & TK_ALREADY_DEAD)) {
629 focusPtr->topLevelPtr->pathName, winPtr->pathName);
632 focusPtr->topLevelPtr);
633 dispPtr->focusWinPtr = focusPtr->topLevelPtr;
712 ChangeXFocus(topLevelPtr, force)
713 TkWindow *topLevelPtr; /* Top-level window that is to receive
717 * topLevelPtr's application. */
719 TkDisplay *dispPtr = topLevelPtr->dispPtr;
747 if ((winPtr == NULL) || (winPtr->mainPtr != topLevelPtr->mainPtr)) {
760 XSetInputFocus(dispPtr->display, topLevelPtr->window, RevertToParent,
764 printf("Set X focus to %s\n", topLevelPtr->pathName);