aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 584debd1..6dbd7d5f 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -58,8 +58,8 @@
#endif
// width of each "edge" region where scrolling happens,
-// as a ratio compared to the viewport size
-// default: 1/16th of the viewport size
+// as a ratio compared to the window size
+// default: 1/16th of the window size
#define EDGE_SCROLL_SIZE 16
// edge width is calculated at runtime; these values are just examples
static int edge_scroll_size_x = 128;
@@ -863,9 +863,9 @@ int DesktopWindow::handle(int event)
}
if (fullscreen_active()) {
// calculate width of "edge" regions
- edge_scroll_size_x = viewport->w() / EDGE_SCROLL_SIZE;
- edge_scroll_size_y = viewport->h() / EDGE_SCROLL_SIZE;
- // if cursor is near the edge of the viewport, scroll
+ edge_scroll_size_x = w() / EDGE_SCROLL_SIZE;
+ edge_scroll_size_y = h() / EDGE_SCROLL_SIZE;
+ // if cursor is near the edge of the window, scroll
if (((viewport->x() < 0) && (Fl::event_x() < edge_scroll_size_x)) ||
((viewport->x() + viewport->w() >= w()) && (Fl::event_x() >= w() - edge_scroll_size_x)) ||
((viewport->y() < 0) && (Fl::event_y() < edge_scroll_size_y)) ||