summaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-06-03 11:45:15 +0000
committerPierre Ossman <ossman@cendio.se>2011-06-03 11:45:15 +0000
commitb3ff4374f226d95a42432bc006bcec3db675a42d (patch)
tree73d90159274d0bb349d1c0c87be90cba3a945492 /vncviewer/Viewport.cxx
parent74634d56a79eb514fa5d5ad66d381edc78e95ded (diff)
downloadtigervnc-b3ff4374f226d95a42432bc006bcec3db675a42d.tar.gz
tigervnc-b3ff4374f226d95a42432bc006bcec3db675a42d.zip
Make sure the popup menu is reset to the same state each go.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4463 3789f03b-4d11-0410-bbf8-ca57d06f2519
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;