XQuartz: Fixed proximity logic errors for tablets.
(cherry picked from commit d942849f248c368b92ca73e145e8a5bc339112d7)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user