From: Alex Tanskanen Date: Thu, 9 Jan 2020 15:17:06 +0000 (+0100) Subject: Remove "Dismiss menu" from context menu X-Git-Tag: v1.10.90~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b9b7f68b40f6638b5a1fef202f482889c0a74a4f;p=tigervnc.git Remove "Dismiss menu" from context menu This was not necessary since you could use ESC key or simply just clicking outside of the context menu to close the menu. --- diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 618845f4..2a40d15f 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -105,7 +105,7 @@ static rfb::LogWriter vlog("Viewport"); enum { ID_EXIT, ID_FULLSCREEN, ID_MINIMIZE, ID_RESIZE, ID_CTRL, ID_ALT, ID_MENUKEY, ID_CTRLALTDEL, - ID_REFRESH, ID_OPTIONS, ID_INFO, ID_ABOUT, ID_DISMISS }; + ID_REFRESH, ID_OPTIONS, ID_INFO, ID_ABOUT }; // Used to detect fake input (0xaa is not a real key) #ifdef WIN32 @@ -1237,10 +1237,7 @@ void Viewport::initContextMenu() fltk_menu_add(contextMenu, p_("ContextMenu|", "Connection &info..."), 0, NULL, (void*)ID_INFO, 0); fltk_menu_add(contextMenu, p_("ContextMenu|", "About &TigerVNC viewer..."), - 0, NULL, (void*)ID_ABOUT, FL_MENU_DIVIDER); - - fltk_menu_add(contextMenu, p_("ContextMenu|", "Dismiss &menu"), - 0, NULL, (void*)ID_DISMISS, 0); + 0, NULL, (void*)ID_ABOUT, 0); } @@ -1335,9 +1332,6 @@ void Viewport::popupContextMenu() case ID_ABOUT: about_vncviewer(); break; - case ID_DISMISS: - // Don't need to do anything - break; } }