From fd177f386e2091087d49b9039ac9a941548313a4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 5 Jan 2012 12:37:04 +0000 Subject: [PATCH] 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 --- vncviewer/Viewport.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5