]> source.dussan.org Git - tigervnc.git/commitdiff
Forgot some comments for the mouse cursor workaround.
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2012 12:37:04 +0000 (12:37 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2012 12:37:04 +0000 (12:37 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4832 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/Viewport.cxx

index e29e375629e7e3c9d36f062b767552d16e978511..768bc34eef529ee6629f4c91ecfd2dfd065b267a 100644 (file)
@@ -887,6 +887,8 @@ void Viewport::popupContextMenu()
   // 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 @@ void Viewport::popupContextMenu()
 
   m = contextMenu->popup();
 
+  // Back to our proper mouse pointer.
 #ifdef HAVE_FLTK_CURSOR
   if (Fl::belowmouse() == this)
     window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);