diff options
author | Jamey Sharp <jamey@minilop.net> | 2011-09-14 18:32:31 -0500 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2011-09-15 01:15:06 -0500 |
commit | 7dcb24f316dab4563e0a5e3dda3e281755ed4659 (patch) | |
tree | c7b54ed0c07826dd526f02b4d4795b7089e5ac87 /src/client.h | |
parent | d02b5449d16670e17e716ba9134d98a38753fe1d (diff) |
Quit waking up every 20ms to get events from the backend server.
Instead, let the input core monitor the X socket, and also register a
block handler to catch any events that were already read before the
server's main-loop goes to sleep.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index c4f171e..6a652f1 100644 --- a/src/client.h +++ b/src/client.h @@ -62,8 +62,10 @@ void NestedClientUpdateScreen(NestedClientPrivatePtr pPriv, void NestedClientHideCursor(NestedClientPrivatePtr pPriv); -void NestedClientTimerCallback(NestedClientPrivatePtr pPriv); +void NestedClientCheckEvents(NestedClientPrivatePtr pPriv); void NestedClientCloseScreen(NestedClientPrivatePtr pPriv); void NestedClientSetDevicePtr(NestedClientPrivatePtr pPriv, DeviceIntPtr dev); + +int NestedClientGetFileDescriptor(NestedClientPrivatePtr pPriv); |