summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-04-15 13:00:12 +0000
committerPierre Ossman <ossman@cendio.se>2011-04-15 13:00:12 +0000
commit343e2e0605d1744112857cd1008157173bd06260 (patch)
tree8cae691861362b767bca614061f3bf70b1b2027c
parent4ae229f70b86443401d62fb07491fef76951a0bc (diff)
downloadtigervnc-343e2e0605d1744112857cd1008157173bd06260.tar.gz
tigervnc-343e2e0605d1744112857cd1008157173bd06260.zip
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
-rw-r--r--vncviewer/DesktopWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index b8dce856..7ce36b4f 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -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);