From 232ef4e1599b22e6d1426147ea594193d64f01a1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 12 Apr 2008 19:16:19 +0000 Subject: Updated 1.3 with changes from 1.1.9 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Window_Type.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'fluid') diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 36a7338c9..d0849d9da 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -501,9 +501,15 @@ Fl_Window_Type Fl_Window_type; // Resize from window manager... void Overlay_Window::resize(int X,int Y,int W,int H) { Fl_Widget* t = resizable(); resizable(0); + + // do not set the mod flag if the window was not resized. In FLUID, all + // windows are opened without a given x/y position, so modifying x/y + // should not mark the project as dirty + if (W!=w() || H!=h()) + set_modflag(1); + Fl_Overlay_Window::resize(X,Y,W,H); resizable(t); - set_modflag(1); update_xywh(); } -- cgit v1.2.3