From 8c56fa75c7d2c865778a0e35e242536063acfb4c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 14 Sep 2003 13:42:04 +0000 Subject: Fix new FLUID window grid bug (STR #166) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 3 +++ fluid/Fl_Window_Type.cxx | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 75062268e..88b6bab28 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ CHANGES IN FLTK 1.1.5rc1 + - FLUID now sets the size range when a window is shown. + This seems to be necessary with some window managers + (STR #166) CHANGES IN FLTK 1.1.4 diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index c745852fe..85edf3a04 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.7 2003/08/02 21:17:30 easysw Exp $" +// "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.8 2003/09/14 13:42:04 easysw Exp $" // // Window type code for the Fast Light Tool Kit (FLTK). // @@ -304,6 +304,9 @@ void Fl_Window_Type::open() { w->show(); w->resizable(p); } + + w->size_range(gridx * snap, gridy * snap, Fl::w(), Fl::h(), + gridx * snap, gridy * snap, 0); } // control panel items: @@ -792,5 +795,5 @@ int Fl_Window_Type::read_fdesign(const char* propname, const char* value) { } // -// End of "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.7 2003/08/02 21:17:30 easysw Exp $". +// End of "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.8 2003/09/14 13:42:04 easysw Exp $". // -- cgit v1.2.3