]> source.dussan.org Git - tigervnc.git/commitdiff
Make sure the popup menu is reset to the same state each go.
authorPierre Ossman <ossman@cendio.se>
Fri, 3 Jun 2011 11:45:15 +0000 (11:45 +0000)
committerPierre Ossman <ossman@cendio.se>
Fri, 3 Jun 2011 11:45:15 +0000 (11:45 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4463 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/Viewport.cxx

index e574903c098cfbf00ae1ed1b6ca0769e0452f43d..95d883ca24f2df1cb53212ba905c511f8aef1c29 100644 (file)
@@ -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;