diff options
author | redman <redman> | 1999-04-03 02:54:15 (GMT) |
---|---|---|
committer | redman <redman> | 1999-04-03 02:54:15 (GMT) |
commit | 751b82f50bb0c8971a051252d77c16e2cbb27b4c (patch) | |
tree | 2f13f400015fb760de536834b0d03c018617ee47 | |
parent | 57b55feb71e3acb110968f1a22c24ff9c4a29f3a (diff) | |
download | tk-751b82f50bb0c8971a051252d77c16e2cbb27b4c.zip tk-751b82f50bb0c8971a051252d77c16e2cbb27b4c.tar.gz tk-751b82f50bb0c8971a051252d77c16e2cbb27b4c.tar.bz2 |
%a is only valid during configure events, so don't try
to do anything with it otherwise.
-rw-r--r-- | generic/tkBind.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index b173df5..a1cddc1 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.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: tkBind.c,v 1.1.4.7 1999/03/10 07:13:37 stanton Exp $ + * RCS: @(#) $Id: tkBind.c,v 1.1.4.8 1999/04/03 02:54:15 redman Exp $ */ #include "tkPort.h" @@ -2312,8 +2312,10 @@ ExpandPercents(winPtr, before, eventPtr, keySym, dsPtr) number = eventPtr->xany.serial; goto doNumber; case 'a': - TkpPrintWindowId(numStorage, eventPtr->xconfigure.above); - string = numStorage; + if (flags & CONFIG) { + TkpPrintWindowId(numStorage, eventPtr->xconfigure.above); + string = numStorage; + } goto doString; case 'b': number = eventPtr->xbutton.button; |