XQuartz: Use pDev=NULL for DarwinSendDDXEvent
These events aren't really related to physical input devices anyways, so it doesn't make sense to use the pointer.
(cherry picked from commit bfe0b9cfa7
)
This commit is contained in:
parent
b8e0f74082
commit
48703083a1
|
@ -571,7 +571,6 @@ void DarwinSendDDXEvent(int type, int argc, ...) {
|
|||
INT32 *argv;
|
||||
int i, max_args;
|
||||
va_list args;
|
||||
DeviceIntPtr pDev;
|
||||
|
||||
memset(&xe, 0, sizeof(xe));
|
||||
xe.u.u.type = type;
|
||||
|
@ -587,9 +586,8 @@ void DarwinSendDDXEvent(int type, int argc, ...) {
|
|||
va_end (args);
|
||||
}
|
||||
|
||||
pDev = (!darwinPointer->isMaster && darwinPointer->u.master) ? darwinPointer->u.master : darwinPointer;
|
||||
darwinEvents_lock(); {
|
||||
mieqEnqueue(pDev, &xe);
|
||||
mieqEnqueue(NULL, &xe);
|
||||
DarwinPokeEQ();
|
||||
} darwinEvents_unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user