diff options
author | Carlos Santos <casantos@redhat.com> | 2023-11-29 18:52:52 -0300 |
---|---|---|
committer | Carlos Santos <casantos@redhat.com> | 2024-04-26 11:28:07 -0300 |
commit | 7597f8d42b236c99d175a02cea7e76593e16b886 (patch) | |
tree | d421a171c74db5884f0d4b1b9a4dcade52866a51 /unix/vncconfig/vncExt.h | |
parent | d77e2b01f972ef12b722e3ef9d22efdc241689c3 (diff) | |
download | tigervnc-7597f8d42b236c99d175a02cea7e76593e16b886.tar.gz tigervnc-7597f8d42b236c99d175a02cea7e76593e16b886.zip |
vncconfig: add option to force view-only remote client connections
Specifies that the server must ignore all keyboard or mouse events sent
by the client.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903
Signed-off-by: Carlos Santos <casantos@redhat.com>
Diffstat (limited to 'unix/vncconfig/vncExt.h')
-rw-r--r-- | unix/vncconfig/vncExt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/vncconfig/vncExt.h b/unix/vncconfig/vncExt.h index 2b24469e..4383248c 100644 --- a/unix/vncconfig/vncExt.h +++ b/unix/vncconfig/vncExt.h @@ -46,7 +46,7 @@ char* XVncExtGetParamDesc(Display* dpy, const char* param); char** XVncExtListParams(Display* dpy, int* nParams); void XVncExtFreeParamList(char** list); Bool XVncExtSelectInput(Display* dpy, Window w, int mask); -Bool XVncExtConnect(Display* dpy, const char* hostAndPort); +Bool XVncExtConnect(Display* dpy, const char* hostAndPort, Bool viewOnly); Bool XVncExtGetQueryConnect(Display* dpy, char** addr, char** user, int* timeout, void** opaqueId); Bool XVncExtApproveConnect(Display* dpy, void* opaqueId, int approve); @@ -181,7 +181,7 @@ typedef struct { CARD8 vncExtReqType; /* always VncExtConnect */ CARD16 length B16; CARD8 strLen; - CARD8 pad0; + CARD8 viewOnly; CARD16 pad1 B16; } xVncExtConnectReq; #define sz_xVncExtConnectReq 8 |