|
|
|
@ -338,8 +338,6 @@ TQSize KVncView::framebufferSize() {
|
|
|
|
|
void KVncView::setViewOnly(bool s) {
|
|
|
|
|
m_viewOnly = s;
|
|
|
|
|
|
|
|
|
|
m_dontSendCb = s;
|
|
|
|
|
|
|
|
|
|
if (s)
|
|
|
|
|
setCursor(TQt::ArrowCursor);
|
|
|
|
|
else
|
|
|
|
@ -513,6 +511,8 @@ void KVncView::customEvent(TQCustomEvent *e)
|
|
|
|
|
TQApplication::beep();
|
|
|
|
|
}
|
|
|
|
|
else if (e->type() == ServerCutEventType) {
|
|
|
|
|
if (!m_viewOnly)
|
|
|
|
|
{
|
|
|
|
|
ServerCutEvent *sce = (ServerCutEvent*) e;
|
|
|
|
|
TQString ctext = TQString::fromUtf8(sce->bytes(), sce->length());
|
|
|
|
|
m_dontSendCb = true;
|
|
|
|
@ -520,6 +520,7 @@ void KVncView::customEvent(TQCustomEvent *e)
|
|
|
|
|
m_cb->setText(ctext, TQClipboard::Selection);
|
|
|
|
|
m_dontSendCb = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (e->type() == MouseStateEventType) {
|
|
|
|
|
MouseStateEvent *mse = (MouseStateEvent*) e;
|
|
|
|
|
emit mouseStateChanged(mse->x(), mse->y(), mse->buttonMask());
|
|
|
|
@ -706,6 +707,11 @@ void KVncView::clipboardChanged() {
|
|
|
|
|
if (m_status != REMOTE_VIEW_CONNECTED)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (m_viewOnly)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (m_cb->ownsClipboard() || m_dontSendCb)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
@ -720,6 +726,11 @@ void KVncView::selectionChanged() {
|
|
|
|
|
if (m_status != REMOTE_VIEW_CONNECTED)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (m_viewOnly)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (m_cb->ownsSelection() || m_dontSendCb)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|