From bfe0b9cfa7af4a48dba849cab1eb152c409b4e08 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 25 Jul 2009 19:34:17 -0700 Subject: [PATCH] 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. --- hw/xquartz/darwinEvents.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c index c6fe56657..ecd0ed7fb 100644 --- a/hw/xquartz/darwinEvents.c +++ b/hw/xquartz/darwinEvents.c @@ -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(); }