diff options
author | Slávek Banko <[email protected]> | 2013-01-15 03:21:13 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-01-15 03:40:18 +0100 |
commit | 3a7127e17d50149a1620ba178d700b45bc7e2bd0 (patch) | |
tree | 44421584d455afd56f8b2b96d11aed9fc6b4d5ab | |
parent | fb7e9c8a83d52ba441e7d6433e80174b791fd186 (diff) | |
download | tdenetwork-3a7127e17d50149a1620ba178d700b45bc7e2bd0.tar.gz tdenetwork-3a7127e17d50149a1620ba178d700b45bc7e2bd0.zip |
Fix krdc in view only mode: block key press events, disable clipboard sharing
This resolves Bug 1390
(cherry picked from commit 9598af160810ee4dccabad48563ddecd071c6065)
-rw-r--r-- | krdc/vnc/kvncview.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp index 634073a8..e2c3ba81 100644 --- a/krdc/vnc/kvncview.cpp +++ b/krdc/vnc/kvncview.cpp @@ -338,6 +338,8 @@ TQSize KVncView::framebufferSize() { void KVncView::setViewOnly(bool s) { m_viewOnly = s; + m_dontSendCb = s; + if (s) setCursor(TQt::ArrowCursor); else @@ -610,6 +612,11 @@ void KVncView::wheelEvent(TQWheelEvent *e) { } void KVncView::pressKey(XEvent *xe) { + if (m_status != REMOTE_VIEW_CONNECTED) + return; + if (m_viewOnly) + return; + KKeyNative k(xe); uint mod = k.mod(); if (mod & KKeyNative::modX(KKey::SHIFT)) |