diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2014-03-19 20:46:41 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-03-25 08:46:12 +1000 |
commit | 215f3d2e0f2a4ef6fc2f2c08fb991e1f00b747c8 (patch) | |
tree | ea64c13dbcf3d20e7ec0f0515ba64c5e09bfb1e2 /include/os.h | |
parent | 44fe1b8ea284df6bbaef67e246016d104665b2fe (diff) |
os: Add AddClientOnOpenFD() to create a new client for an file descriptor
When the Xwayland server is socket-activated, we need to connect and
initialize the window manager before the activating client gets to
proceed with connecting. We do this by passing a socket file
descriptor for the window manager connection to the Xwayland server,
which then uses this new function to set it up as an X client.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 90229e672..d26e399b6 100644 --- a/include/os.h +++ b/include/os.h @@ -168,6 +168,8 @@ extern _X_EXPORT void MakeClientGrabPervious(ClientPtr /*client */ ); extern _X_EXPORT void ListenOnOpenFD(int /* fd */ , int /* noxauth */ ); +extern _X_EXPORT Bool AddClientOnOpenFD(int /* fd */ ); + extern _X_EXPORT CARD32 GetTimeInMillis(void); extern _X_EXPORT CARD64 GetTimeInMicros(void); |