diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-01-05 12:37:04 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-01-05 12:37:04 +0000 |
commit | fd177f386e2091087d49b9039ac9a941548313a4 (patch) | |
tree | 435cbb01a345a5bcd69d13d232cab422cc753f3f /vncviewer | |
parent | bfbdb10958a0f8b3f4ea12cb4b99398bbdaa0601 (diff) | |
download | tigervnc-fd177f386e2091087d49b9039ac9a941548313a4.tar.gz tigervnc-fd177f386e2091087d49b9039ac9a941548313a4.zip |
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
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/Viewport.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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); |