diff options
author | jenglish <jenglish@noemail.net> | 2002-06-14 22:25:10 (GMT) |
---|---|---|
committer | jenglish <jenglish@noemail.net> | 2002-06-14 22:25:10 (GMT) |
commit | be685bc42b5fe903a17f680bd393334fa7c13821 (patch) | |
tree | db4f9b64945413c671514dd1b7f254700c3649cb /mac/tkMacWindowMgr.c | |
parent | 241fbc3cb710c0d571462fabfe1337a9cc9f3fa1 (diff) | |
download | tk-be685bc42b5fe903a17f680bd393334fa7c13821.zip tk-be685bc42b5fe903a17f680bd393334fa7c13821.tar.gz tk-be685bc42b5fe903a17f680bd393334fa7c13821.tar.bz2 |
TIP #47 "Modifying Tk to Allow Writing X Window managers"
(patch from Neil McKay).
* Add CirculateRequest, Create, MapRequest, ResizeRequest,
and ConfigureRequest event types;
* Split TK_TOPLEVEL flag into TK_TOPLEVEL, TK_HAS_WRAPPER,
TK_WIN_MANAGED, and TK_TOP_HIERARCHY.
FossilOrigin-Name: ad38fbacd7328c607131ee691e933fcc9aa67d3e
Diffstat (limited to 'mac/tkMacWindowMgr.c')
-rw-r--r-- | mac/tkMacWindowMgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mac/tkMacWindowMgr.c b/mac/tkMacWindowMgr.c index 894a7d0..abe0c35 100644 --- a/mac/tkMacWindowMgr.c +++ b/mac/tkMacWindowMgr.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacWindowMgr.c,v 1.9 2001/11/23 02:06:32 das Exp $ + * RCS: @(#) $Id: tkMacWindowMgr.c,v 1.10 2002/06/14 22:25:12 jenglish Exp $ */ #include <Events.h> @@ -426,7 +426,7 @@ GenerateUpdates( for (childPtr = winPtr->childList; childPtr != NULL; childPtr = childPtr->nextPtr) { - if (!Tk_IsMapped(childPtr) || Tk_IsTopLevel(childPtr)) { + if (!Tk_IsMapped(childPtr) || Tk_TopWinHierarchy(childPtr)) { continue; } @@ -1546,7 +1546,7 @@ void TkpSetCapture( TkWindow *winPtr) /* Capture window, or NULL. */ { - while ((winPtr != NULL) && !Tk_IsTopLevel(winPtr)) { + while ((winPtr != NULL) && !Tk_TopWinHierarchy(winPtr)) { winPtr = winPtr->parentPtr; } gGrabWinPtr = (Tk_Window) winPtr; |