[PATCH] Don't send keys if we are in read only mode



---
 src/vncdisplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 5b732a4..3fc7137 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -1507,7 +1507,7 @@ void vnc_display_send_keys_ex(VncDisplay *obj, const guint *keyvals,
 {
 	int i;
 
-	if (obj->priv->gvnc == NULL || !gvnc_is_open(obj->priv->gvnc))
+	if (obj->priv->gvnc == NULL || !gvnc_is_open(obj->priv->gvnc) || obj->priv->read_only)
 		return;
 
 	if (kind & VNC_DISPLAY_KEY_EVENT_PRESS) {
-- 
1.6.0.4


--=-WXFhCNE4K1u7oLncTdHv--



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]