summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-04-15 12:57:31 +0000
committerPierre Ossman <ossman@cendio.se>2011-04-15 12:57:31 +0000
commit6a464beb1bb9e16567aa3605d979be3f3229d799 (patch)
tree8ef0eba783c30464d014041562bfab84e62b446a /vncviewer
parenta6e207782375c6f4c3ba5c77868486baefc96160 (diff)
downloadtigervnc-6a464beb1bb9e16567aa3605d979be3f3229d799.tar.gz
tigervnc-6a464beb1bb9e16567aa3605d979be3f3229d799.zip
Need to adjust mouse coordinates now that we can move the widget around.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4373 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/Viewport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index 8150b04b..4d8bd2a5 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -186,11 +186,11 @@ int Viewport::handle(int event)
// A quick press of the wheel "button", followed by a immediate
// release below
- handlePointerEvent(Point(Fl::event_x(), Fl::event_y()),
+ handlePointerEvent(Point(Fl::event_x() - x(), Fl::event_y() - y()),
buttonMask | wheelMask);
}
- handlePointerEvent(Point(Fl::event_x(), Fl::event_y()), buttonMask);
+ handlePointerEvent(Point(Fl::event_x() - x(), Fl::event_y() - y()), buttonMask);
return 1;
case FL_FOCUS: