diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-21 08:06:59 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-21 08:06:59 (GMT) |
commit | 604b9d13db47430c5f580290a801beae05eef13e (patch) | |
tree | 90a40fd039da5472d189be8b8b34c440f4de0dff /generic/tkBind.c | |
parent | fd636b80ebd519e891807305cf5c22f69a03edd6 (diff) | |
parent | 1ad8b81988aa95d3ae080faa924677e7c9d56c1f (diff) | |
download | tk-604b9d13db47430c5f580290a801beae05eef13e.zip tk-604b9d13db47430c5f580290a801beae05eef13e.tar.gz tk-604b9d13db47430c5f580290a801beae05eef13e.tar.bz2 |
same bugfix, but now applied to trunk
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 6841f1e..8b07007 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -2226,33 +2226,19 @@ ExpandPercents( } case 'X': if (flags & KEY_BUTTON_MOTION_CROSSING) { - Tk_Window tkwin; - int x, y; - int width, height; number = eventPtr->xkey.x_root; - tkwin = Tk_IdToWindow(eventPtr->xany.display, + Tk_IdToWindow(eventPtr->xany.display, eventPtr->xany.window); - if (tkwin != NULL) { - Tk_GetVRootGeometry(tkwin, &x, &y, &width, &height); - number -= x; - } goto doNumber; } goto doString; case 'Y': if (flags & KEY_BUTTON_MOTION_CROSSING) { - Tk_Window tkwin; - int x, y; - int width, height; number = eventPtr->xkey.y_root; - tkwin = Tk_IdToWindow(eventPtr->xany.display, + Tk_IdToWindow(eventPtr->xany.display, eventPtr->xany.window); - if (tkwin != NULL) { - Tk_GetVRootGeometry(tkwin, &x, &y, &width, &height); - number -= y; - } goto doNumber; } goto doString; |