Revision: 4373 http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4373&view=rev Author: ossman_ Date: 2011-04-15 12:57:31 +0000 (Fri, 15 Apr 2011)
Log Message: ----------- Need to adjust mouse coordinates now that we can move the widget around. Modified Paths: -------------- trunk/vncviewer/Viewport.cxx Modified: trunk/vncviewer/Viewport.cxx =================================================================== --- trunk/vncviewer/Viewport.cxx 2011-04-15 11:10:52 UTC (rev 4372) +++ trunk/vncviewer/Viewport.cxx 2011-04-15 12:57:31 UTC (rev 4373) @@ -186,11 +186,11 @@ // 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: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Tigervnc-commits mailing list Tigervnc-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-commits