aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-23 02:16:27 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-24 17:48:56 -0400
commite8d25d83463805c0f6ef623dba2ac9a276df3587 (patch)
tree459d8cd1b22ad71fbd23e87d32472b7551bbc24e /vncviewer/DesktopWindow.cxx
parent5fa609df53fa72ff7b16adff663414edbf8e0815 (diff)
downloadtigervnc-e8d25d83463805c0f6ef623dba2ac9a276df3587.tar.gz
tigervnc-e8d25d83463805c0f6ef623dba2ac9a276df3587.zip
vncviewer: Fix fullscreen scrolling
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 47fe8f89..946b162c 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -1120,11 +1120,6 @@ void DesktopWindow::scrollTo(int x, int y)
hscroll->value(x);
vscroll->value(y);
- if (!hscroll->visible())
- x = -viewport->x();
- if (!vscroll->visible())
- y = -viewport->y();
-
// Scrollbar position results in inverse movement of
// the viewport widget
x = -x;
@@ -1189,7 +1184,7 @@ void DesktopWindow::handleEdgeScroll(void *data)
if ((dx == 0) && (dy == 0))
return;
- self->scrollTo(self->hscroll->value() + dx, self->vscroll->value() + dy);
+ self->scrollTo(self->hscroll->value() - dx, self->vscroll->value() - dy);
Fl::repeat_timeout(0.1, handleEdgeScroll, data);
}