aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r--vncviewer/Viewport.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index e574903c..95d883ca 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -665,6 +665,10 @@ void Viewport::popupContextMenu()
if (window()->contains(Fl::focus()))
Fl::focus(NULL);
+ // Make sure the menu is reset to its initial state between goes or
+ // it will start up highlighting the previously selected entry.
+ contextMenu->value(-1);
+
m = contextMenu->popup();
if (m == NULL)
return;