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.
This commit is contained in:
Jeremy Huddleston 2009-07-25 19:34:17 -07:00
parent bf60ffb497
commit bfe0b9cfa7

View File

@ -572,7 +572,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;
@ -588,9 +587,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();
}