]> source.dussan.org Git - tigervnc.git/commitdiff
Fix some graphics bugs that occurred on Win32 when using the popup menu.
authorPierre Ossman <ossman@cendio.se>
Thu, 26 May 2011 14:16:02 +0000 (14:16 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 26 May 2011 14:16:02 +0000 (14:16 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4448 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/Viewport.cxx

index 1dff1021178d1cdbc006a1234538e36be477f5f2..beee8ba118a790d76d49c62978bdabd9d36c172b 100644 (file)
@@ -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();