From 314a351940e9537304ea3eacdf6663472d3dc85b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 29 Oct 2002 19:23:55 +0000 Subject: MacOS windows were rsizable even if size_range would not allow a resize. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ src/Fl_mac.cxx | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index bd78bdb2b..e63770090 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.2 + - MacOS windows were resizable, even when size_range would + not allow for resizing. - Fl_Text_Editor now supports Shift+Delete, Ctrl+Insert, and Shift+Insert for cut, copy, and paste, respectively. diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index ea4f3379d..59044019a 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_mac.cxx,v 1.1.2.34 2002/09/20 17:56:56 easysw Exp $" +// "$Id: Fl_mac.cxx,v 1.1.2.35 2002/10/29 19:23:55 matthiaswm Exp $" // // MacOS specific code for the Fast Light Tool Kit (FLTK). // @@ -1374,7 +1374,8 @@ void Fl_X::make(Fl_Window* w) int wp = w->w(); int hp = w->h(); if (w->size_range_set) { - winattr |= kWindowFullZoomAttribute | kWindowResizableAttribute | kWindowLiveResizeAttribute; + if ( w->minh != w->maxh || w->minw != w->maxw) + winattr |= kWindowFullZoomAttribute | kWindowResizableAttribute | kWindowLiveResizeAttribute; } else { if (w->resizable()) { Fl_Widget *o = w->resizable(); @@ -1723,6 +1724,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) { // -// End of "$Id: Fl_mac.cxx,v 1.1.2.34 2002/09/20 17:56:56 easysw Exp $". +// End of "$Id: Fl_mac.cxx,v 1.1.2.35 2002/10/29 19:23:55 matthiaswm Exp $". // -- cgit v1.2.3