]> source.dussan.org Git - tigervnc.git/commitdiff
Limit window size to framebuffer size, which is the behaviour we have in the
authorPierre Ossman <ossman@cendio.se>
Fri, 15 Apr 2011 13:00:12 +0000 (13:00 +0000)
committerPierre Ossman <ossman@cendio.se>
Fri, 15 Apr 2011 13:00:12 +0000 (13:00 +0000)
old viewer.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4375 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/DesktopWindow.cxx

index b8dce85600d9b6c66ca9289bc3c3ea461636e738..7ce36b4fe8ee2e828ccb24878e376dff403cb8af 100644 (file)
@@ -40,7 +40,7 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name,
   : Fl_Window(w, h)
 {
   // Allow resize
-  size_range(100, 100);
+  size_range(100, 100, w, h);
 
   Fl_Scroll *scroll = new Fl_Scroll(0, 0, w, h);
   scroll->color(FL_BLACK);