From: Samuel Mannehed Date: Fri, 25 Oct 2019 08:26:16 +0000 (+0200) Subject: Don't show the context menu hint when no hotkey X-Git-Tag: v1.10.90~106^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F894%2Fhead;p=tigervnc.git Don't show the context menu hint when no hotkey --- diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 1b666f94..47fd3dbe 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -536,8 +536,11 @@ void DesktopWindow::menuOverlay(void* data) DesktopWindow *self; self = (DesktopWindow*)data; - self->setOverlay(_("Press %s to open the context menu"), - (const char*)menuKey); + + if (strcmp((const char*)menuKey, "") != 0) { + self->setOverlay(_("Press %s to open the context menu"), + (const char*)menuKey); + } } void DesktopWindow::setOverlay(const char* text, ...)