XQuartz: Fixed proximity logic errors for tablets.
(cherry picked from commit d942849f248c368b92ca73e145e8a5bc339112d7)
This commit is contained in:
parent
c661c6ae7a
commit
1c70e53f25
|
@ -924,7 +924,7 @@ static void send_nsevent(NSEvent *e) {
|
|||
tilt_y = [e tilt].y;
|
||||
}
|
||||
|
||||
if([e subtype] != NSTabletProximityEventSubtype) {
|
||||
if([e subtype] == NSTabletProximityEventSubtype) {
|
||||
switch([e pointingDeviceType]) {
|
||||
case NSEraserPointingDevice:
|
||||
darwinTabletCurrent=darwinTabletEraser;
|
||||
|
@ -949,7 +949,6 @@ static void send_nsevent(NSEvent *e) {
|
|||
break;
|
||||
|
||||
case NSTabletProximity:
|
||||
if([e subtype] != NSTabletProximityEventSubtype) {
|
||||
switch([e pointingDeviceType]) {
|
||||
case NSEraserPointingDevice:
|
||||
darwinTabletCurrent=darwinTabletEraser;
|
||||
|
@ -962,7 +961,6 @@ static void send_nsevent(NSEvent *e) {
|
|||
default:
|
||||
darwinTabletCurrent=darwinTabletCursor;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DarwinSendProximityEvents([e isEnteringProximity]?ProximityIn:ProximityOut,
|
||||
|
|
Loading…
Reference in New Issue