summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--krdc/vnc/kvncview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp
index c332afbd..5337e16a 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))