diff options
author | jenglish <jenglish@flightlab.com> | 2002-08-08 22:32:11 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2002-08-08 22:32:11 (GMT) |
commit | e6119ff8e2695b362e38523181634e8ad31537d3 (patch) | |
tree | 80c879fd85e4184f38319f75d95ad352e11e6d88 /win/tkWinWm.c | |
parent | 9cac02656967687ba2f7d9372883690993e82e26 (diff) | |
download | tk-e6119ff8e2695b362e38523181634e8ad31537d3.zip tk-e6119ff8e2695b362e38523181634e8ad31537d3.tar.gz tk-e6119ff8e2695b362e38523181634e8ad31537d3.tar.bz2 |
Fix for Tk Bug #592201 "wm transient fails with two masters".
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 22996e9..5248a54 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinWm.c,v 1.51 2002/08/05 14:01:15 dgp Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.52 2002/08/08 22:32:12 jenglish Exp $ */ #include "tkWinInt.h" @@ -4625,14 +4625,14 @@ WmTransientCmd(tkwin, winPtr, interp, objc, objv) * transient states reflect the state of the master. */ - if (wmPtr->masterPtr == NULL) { - masterPtr->wmInfoPtr->numTransients++; - } else { + if (wmPtr->masterPtr != NULL) { + wmPtr->masterPtr->wmInfoPtr->numTransients--; Tk_DeleteEventHandler((Tk_Window) wmPtr->masterPtr, VisibilityChangeMask|StructureNotifyMask, WmWaitVisibilityOrMapProc, (ClientData) winPtr); } + masterPtr->wmInfoPtr->numTransients++; Tk_CreateEventHandler((Tk_Window) masterPtr, VisibilityChangeMask|StructureNotifyMask, WmWaitVisibilityOrMapProc, (ClientData) winPtr); |