mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 11:00:15 +01: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.
(cherry picked from commit bfe0b9cfa7)
This commit is contained in:
parent
b8e0f74082
commit
48703083a1
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue