--- src.dist/java/awt/EventQueue.java 2004-06-26 01:11:06.000000000 -0400 +++ src/java/awt/EventQueue.java 2005-01-03 13:03:33.000000000 -0500 @@ -300,16 +300,21 @@ if (source instanceof Component) { EventQueueItem q = queues[priority].head; - if (theEvent.id == Event.MOUSE_MOVE || - theEvent.id == Event.MOUSE_DRAG) { - EventQueueItem qm; - for(qm = q; qm != null; qm = qm.next) { - if ((qm.event instanceof MouseEvent) && - qm.id != theEvent.id) { - q = qm; - } - } - } + // Commented out - baccala@freesoft.org + // If we're running on a tablet PC, we don't want mouse + // drag events coalesced because we'll lose information + // about the path of the user's pen + + //if (theEvent.id == Event.MOUSE_MOVE || + // theEvent.id == Event.MOUSE_DRAG) { + // EventQueueItem qm; + // for(qm = q; qm != null; qm = qm.next) { + // if ((qm.event instanceof MouseEvent) && + // qm.id != theEvent.id) { + // q = qm; + // } + // } + //} for (; q != null; q = q.next) { // Give Component.coalesceEvents a chance --- src.dist/java/awt/Component.java 2004-06-26 01:11:06.000000000 -0400 +++ src/java/awt/Component.java 2005-01-03 13:03:08.000000000 -0500 @@ -4916,16 +4916,22 @@ } switch (id) { - case Event.MOUSE_MOVE: - case Event.MOUSE_DRAG: { - MouseEvent e = (MouseEvent)existingEvent; - if (e.getModifiers() == ((MouseEvent)newEvent).getModifiers()) { - // Just return the newEvent, causing the old to be - // discarded. - return newEvent; - } - break; - } + + // Commented out - baccala@freesoft.org + // If we're running on a tablet PC, we don't want mouse + // drag events coalesced because we'll lose information + // about the path of the user's pen + + // case Event.MOUSE_MOVE: + // case Event.MOUSE_DRAG: { + // MouseEvent e = (MouseEvent)existingEvent; + // if (e.getModifiers() == ((MouseEvent)newEvent).getModifiers()) { + // // Just return the newEvent, causing the old to be + // // discarded. + // return newEvent; + // } + // break; + // } case PaintEvent.PAINT: case PaintEvent.UPDATE: { if(peer != null && !(peer instanceof LightweightPeer)) {