[AJB] - Background: Having a touchpad can be very useful in [X]-windows. With the proper drivers you get a handful of controlable mouse gestures that map to button bindings. Examples: Punch down with a single finger on the pad for a Button-1 event, Two fingers at the same time for a Button-2 event, Three fingers for Button-3 (Only 3 of my fat fingers fit on the pad, but it should be possible to do more). Also, and most useful, sliding your finger up and down on the left vertical edge of the pad generates Button-4 and Button-5 events, depending on direction, and these map out just fine. The problem comes with the bottom edge of the pad that is mapped to Button-6 and Button-7 events. However, X.h does not, and can not, define a Button6MotionMask or Button7MotionMask. Which the current Tk code relys on :( So, with a bit of help from [RS] on the chat here is a solution to the problem. bind .