diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 9f5d3b6b2..ecb6e218f 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -964,7 +964,9 @@ extern int darwin_modifier_flags; // darwinEvents.c handle_mouse: pDev = darwinPointer; - if([e subtype] == NSTabletProximityEventSubtype) { + /* NSTabletPoint can have no subtype */ + if([e type] != NSTabletPoint && + [e subtype] == NSTabletProximityEventSubtype) { switch([e pointingDeviceType]) { case NSEraserPointingDevice: darwinTabletCurrent=darwinTabletEraser;