diff -urN --exclude-from=/usr/src/exclude gpm-1.20.1/src/evdev.c gpm/src/evdev.c
--- gpm-1.20.1/src/evdev.c	2003-08-24 14:50:28.000000000 -0500
+++ gpm/src/evdev.c	2003-08-24 14:51:34.000000000 -0500
@@ -293,7 +293,7 @@
    enum edge_type edge;
   
    touch->type = evdev->type == EVDEV_SYNAPTICS ? 
-                     tp_detect_touch(evdev) : syn_detect_touch(evdev);
+                     syn_detect_touch(evdev) : tp_detect_touch(evdev);
    if (touch->type != TOUCH_PALM) {
       if (touch->type == TOUCH_FINGERS && !was_touching) {
          touch->x = evdev->pkt.abs_x;
