Forgot some comments for the mouse cursor workaround.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4832 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index e29e375..768bc34 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -887,6 +887,8 @@
// initialize context menu before display
initContextMenu();
+ // Unfortunately FLTK doesn't reliably restore the mouse pointer for
+ // menus, so we have to help it out.
#ifdef HAVE_FLTK_CURSOR
if (Fl::belowmouse() == this)
window()->cursor(FL_CURSOR_DEFAULT);
@@ -894,6 +896,7 @@
m = contextMenu->popup();
+ // Back to our proper mouse pointer.
#ifdef HAVE_FLTK_CURSOR
if (Fl::belowmouse() == this)
window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);