diff options
author | jenglish@flightlab.com <jenglish> | 2002-06-14 22:25:11 (GMT) |
---|---|---|
committer | jenglish@flightlab.com <jenglish> | 2002-06-14 22:25:11 (GMT) |
commit | 5748cc239dc0eac72930c6662ba910bba6249dcc (patch) | |
tree | db4f9b64945413c671514dd1b7f254700c3649cb /generic/tkImage.c | |
parent | d42f8190422a500cb7fce0b3d035627ed8216371 (diff) | |
download | tk-5748cc239dc0eac72930c6662ba910bba6249dcc.zip tk-5748cc239dc0eac72930c6662ba910bba6249dcc.tar.gz tk-5748cc239dc0eac72930c6662ba910bba6249dcc.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.
Diffstat (limited to 'generic/tkImage.c')
-rw-r--r-- | generic/tkImage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImage.c b/generic/tkImage.c index 38275a8..69b1e19 100644 --- a/generic/tkImage.c +++ b/generic/tkImage.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkImage.c,v 1.14 2002/02/03 22:33:07 ericm Exp $ + * RCS: @(#) $Id: tkImage.c,v 1.15 2002/06/14 22:25:12 jenglish Exp $ */ #include "tkInt.h" @@ -1048,7 +1048,7 @@ Tk_SetTSOrigin(tkwin, gc, x, y) GC gc; int x, y; { - while (!Tk_IsTopLevel(tkwin)) { + while (!Tk_TopWinHierarchy(tkwin)) { x -= Tk_X(tkwin) + Tk_Changes(tkwin)->border_width; y -= Tk_Y(tkwin) + Tk_Changes(tkwin)->border_width; tkwin = Tk_Parent(tkwin); |