diff options
author | culler <culler> | 2019-04-01 15:03:24 (GMT) |
---|---|---|
committer | culler <culler> | 2019-04-01 15:03:24 (GMT) |
commit | c01cc1fe20294b8c83dba11c2be15caff3cdce61 (patch) | |
tree | a571cd53561fcb6c09cd1998236659a80bcf442f /generic/tkGeometry.c | |
parent | ade11f80ecb09290cd8272d7d58f55dac2e508de (diff) | |
download | tk-c01cc1fe20294b8c83dba11c2be15caff3cdce61.zip tk-c01cc1fe20294b8c83dba11c2be15caff3cdce61.tar.gz tk-c01cc1fe20294b8c83dba11c2be15caff3cdce61.tar.bz2 |
Use geometry masters, not parents, to find the nesting depth.
Diffstat (limited to 'generic/tkGeometry.c')
-rw-r--r-- | generic/tkGeometry.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkGeometry.c b/generic/tkGeometry.c index 2e0009a..a9c134b 100644 --- a/generic/tkGeometry.c +++ b/generic/tkGeometry.c @@ -425,6 +425,8 @@ Tk_MaintainGeometry( Tk_Window ancestor, parent; TkDisplay *dispPtr = ((TkWindow *) master)->dispPtr; + Tk_GeomMaster(slave) = master; + if (master == Tk_Parent(slave)) { /* * If the slave is a direct descendant of the master, don't bother @@ -570,6 +572,8 @@ Tk_UnmaintainGeometry( Tk_Window ancestor; TkDisplay *dispPtr = ((TkWindow *) slave)->dispPtr; + Tk_GeomMaster(slave) = NULL; + if (master == Tk_Parent(slave)) { /* * If the slave is a direct descendant of the master, |