mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 03:48:04 +02:00
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:
parent
bf60ffb497
commit
bfe0b9cfa7
1 changed files with 1 additions and 3 deletions
|
|
@ -572,7 +572,6 @@ void DarwinSendDDXEvent(int type, int argc, ...) {
|
||||||
INT32 *argv;
|
INT32 *argv;
|
||||||
int i, max_args;
|
int i, max_args;
|
||||||
va_list args;
|
va_list args;
|
||||||
DeviceIntPtr pDev;
|
|
||||||
|
|
||||||
memset(&xe, 0, sizeof(xe));
|
memset(&xe, 0, sizeof(xe));
|
||||||
xe.u.u.type = type;
|
xe.u.u.type = type;
|
||||||
|
|
@ -588,9 +587,8 @@ void DarwinSendDDXEvent(int type, int argc, ...) {
|
||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
||||||
pDev = (!darwinPointer->isMaster && darwinPointer->u.master) ? darwinPointer->u.master : darwinPointer;
|
|
||||||
darwinEvents_lock(); {
|
darwinEvents_lock(); {
|
||||||
mieqEnqueue(pDev, &xe);
|
mieqEnqueue(NULL, &xe);
|
||||||
DarwinPokeEQ();
|
DarwinPokeEQ();
|
||||||
} darwinEvents_unlock();
|
} darwinEvents_unlock();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue