From: Pierre Ossman Date: Thu, 26 May 2011 14:16:02 +0000 (+0000) Subject: Fix some graphics bugs that occurred on Win32 when using the popup menu. X-Git-Tag: v1.1.90~330 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad9d1aef3bbcb011b40411f2b720766c01376254;p=tigervnc.git Fix some graphics bugs that occurred on Win32 when using the popup menu. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4448 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 1dff1021..beee8ba1 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -78,6 +78,10 @@ Viewport::Viewport(int w, int h, const rfb::PixelFormat& serverPF, CConn* cc_) setServerPF(serverPF); contextMenu = new Fl_Menu_Button(0, 0, 0, 0); + // Setting box type to FL_NO_BOX prevents it from trying to draw the + // button component (which we don't want) + contextMenu->box(FL_NO_BOX); + initContextMenu(); setMenuKey();