summaryrefslogtreecommitdiffstats
path: root/generic/tkBind.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-20 12:50:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-20 12:50:11 (GMT)
commit4536458f719fdc35f247c8139aad6b8b71471048 (patch)
treeac02899a473761587e13b2906482b07f4bb0bb66 /generic/tkBind.c
parentf4876885b53d6ed34fb1c3577e0c2d238a871953 (diff)
parent8077dd948e9d7c758be18837a1cc637007e50084 (diff)
downloadtk-4536458f719fdc35f247c8139aad6b8b71471048.zip
tk-4536458f719fdc35f247c8139aad6b8b71471048.tar.gz
tk-4536458f719fdc35f247c8139aad6b8b71471048.tar.bz2
fix (hopefully) menu posting in the same way as window placement
Diffstat (limited to 'generic/tkBind.c')
-rwxr-xr-xgeneric/tkBind.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index 3f05ccc..79112a0 100755
--- a/generic/tkBind.c
+++ b/generic/tkBind.c
@@ -2626,32 +2626,20 @@ ExpandPercents(winPtr, before, eventPtr, keySym, dsPtr)
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,
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,
eventPtr->xany.window);
- if (tkwin != NULL) {
- Tk_GetVRootGeometry(tkwin, &x, &y, &width, &height);
- number -= y;
- }
goto doNumber;
}
goto doString;