[gtk-vnc] Don't send keys if we are in read only mode
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk-vnc] Don't send keys if we are in read only mode
- Date: Mon, 27 Jul 2009 14:39:40 +0000 (UTC)
commit 3fc91b0740f52329d0098656200dc82fa983d78f
Author: Jonh Wendell <jwendell gnome org>
Date: Sat Jul 25 14:53:59 2009 -0300
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]