diff options
author | fvogel <fvogelnew1@free.fr> | 2020-05-10 21:37:43 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-05-10 21:37:43 (GMT) |
commit | 865cb47f7cc2c4ef68a318434ca53afa6ae31515 (patch) | |
tree | 999b064bc1ae9612f69158cbf79ed50b60fdcafa /generic | |
parent | 41cd884224ae0a4284284b7c88a9f71690483b8e (diff) | |
download | tk-865cb47f7cc2c4ef68a318434ca53afa6ae31515.zip tk-865cb47f7cc2c4ef68a318434ca53afa6ae31515.tar.gz tk-865cb47f7cc2c4ef68a318434ca53afa6ae31515.tar.bz2 |
Backout the last two commits. That was my error: the original #define KEY_BUTTON_MOTION_CROSSING_WHEEL was (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL), that is it included VIRTUAL even if its name didn't. This define is no longer used, making things less misleading.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBind.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 4f2c7cb..5561f1d 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -3152,13 +3152,13 @@ ExpandPercents( } break; case 'R': - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { TkpPrintWindowId(numStorage, evPtr->xkey.root); string = numStorage; } break; case 'S': - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { TkpPrintWindowId(numStorage, evPtr->xkey.subwindow); string = numStorage; } @@ -3174,12 +3174,12 @@ ExpandPercents( break; } case 'X': - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { SET_NUMBER(evPtr->xkey.x_root); } break; case 'Y': - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { SET_NUMBER(evPtr->xkey.y_root); } break; @@ -3898,7 +3898,7 @@ HandleEventGenerate( event.general.xcreatewindow.window = event.general.xany.window; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.x_root = -1; event.general.xkey.y_root = -1; } @@ -4129,7 +4129,7 @@ HandleEventGenerate( if (!NameToWindow(interp, tkwin, valuePtr, &tkwin2)) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.root = Tk_WindowId(tkwin2); } else { badOpt = 1; @@ -4139,7 +4139,7 @@ HandleEventGenerate( if (Tk_GetPixelsFromObj(interp, tkwin, valuePtr, &number) != TCL_OK) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.x_root = number; } else { badOpt = 1; @@ -4149,7 +4149,7 @@ HandleEventGenerate( if (Tk_GetPixelsFromObj(interp, tkwin, valuePtr, &number) != TCL_OK) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.y_root = number; } else { badOpt = 1; @@ -4188,11 +4188,11 @@ HandleEventGenerate( event.general.xany.serial = number; break; case EVENT_STATE: - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { if (Tcl_GetIntFromObj(interp, valuePtr, &number) != TCL_OK) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|WHEEL)) { event.general.xkey.state = number; } else { event.general.xcrossing.state = number; @@ -4210,7 +4210,7 @@ HandleEventGenerate( if (!NameToWindow(interp, tkwin, valuePtr, &tkwin2)) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.subwindow = Tk_WindowId(tkwin2); } else { badOpt = 1; @@ -4224,7 +4224,7 @@ HandleEventGenerate( } else if (Tcl_GetIntFromObj(interp, valuePtr, &number) != TCL_OK) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.time = number; } else if (flags & PROP) { event.general.xproperty.time = number; @@ -4259,7 +4259,7 @@ HandleEventGenerate( if (Tk_GetPixelsFromObj(interp, tkwin, valuePtr, &number) != TCL_OK) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.x = number; /* @@ -4286,7 +4286,7 @@ HandleEventGenerate( if (Tk_GetPixelsFromObj(interp, tkwin, valuePtr, &number) != TCL_OK) { return TCL_ERROR; } - if (flags & (KEY|BUTTON|MOTION|CROSSING|WHEEL)) { + if (flags & (KEY|BUTTON|MOTION|VIRTUAL|CROSSING|WHEEL)) { event.general.xkey.y = number; /* |