Browse Source

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
tags/v1.1.90
Pierre Ossman 13 years ago
parent
commit
ad9d1aef3b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      vncviewer/Viewport.cxx

+ 4
- 0
vncviewer/Viewport.cxx View 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();

Loading…
Cancel
Save