From: Pierre Ossman Date: Thu, 5 Jan 2012 12:37:04 +0000 (+0000) Subject: Forgot some comments for the mouse cursor workaround. X-Git-Tag: v1.2.0~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fd177f386e2091087d49b9039ac9a941548313a4;p=tigervnc.git 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 e29e3756..768bc34e 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -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);