mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +00:00
XQuartz: Added functionality to add a file descriptor to the connection list after the server is already running.
(cherry picked from commit 543c2cd68d1ffef65d4644b860faad7191c6b9da)
This commit is contained in:
parent
01612fe612
commit
2408303d79
9 changed files with 224 additions and 11 deletions
|
|
@ -45,6 +45,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include "mi.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "mipointer.h"
|
||||
#include "os.h"
|
||||
|
||||
#include "darwin.h"
|
||||
#include "quartz.h"
|
||||
|
|
@ -214,6 +215,16 @@ static void DarwinSimulateMouseClick(
|
|||
DarwinUpdateModifiers(KeyPress, modifierMask);
|
||||
}
|
||||
|
||||
static void kXquartzListenOnOpenFDHandler(int screenNum, xEventPtr xe, DeviceIntPtr dev, int nevents) {
|
||||
size_t i;
|
||||
TA_SERVER();
|
||||
|
||||
for (i=0; i<nevents; i++) {
|
||||
//sleep(20);
|
||||
ListenOnOpenFD(xe[i].u.clientMessage.u.l.longs0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Generic handler for Xquartz-specifc events. When possible, these should
|
||||
be moved into their own individual functions and set as handlers using
|
||||
mieqSetHandler. */
|
||||
|
|
@ -319,7 +330,8 @@ Bool DarwinEQInit(void) {
|
|||
mieqSetHandler(kXquartzControllerNotify, DarwinEventHandler);
|
||||
mieqSetHandler(kXquartzPasteboardNotify, DarwinEventHandler);
|
||||
mieqSetHandler(kXquartzDisplayChanged, QuartzDisplayChangedHandler);
|
||||
|
||||
mieqSetHandler(kXquartzListenOnOpenFD, kXquartzListenOnOpenFDHandler);
|
||||
|
||||
QuartzModeEQInit();
|
||||
|
||||
if (!darwinEvents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue