Limit window size to framebuffer size, which is the behaviour we have in the
old viewer.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4375 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index b8dce85..7ce36b4 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -40,7 +40,7 @@
: 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);