From fbb95422d82c23707d2e43c687efcfedb81e5d0e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 12 Apr 2008 15:31:54 +0000 Subject: [PATCH] Tiny change to keep overzealous Fluid from marking a scene graph as modified when moving a top-level window. Not added to CHANGES because this is so minor. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Window_Type.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 36a7338c9..bfcea17bc 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -503,7 +503,11 @@ void Overlay_Window::resize(int X,int Y,int W,int H) { Fl_Widget* t = resizable(); resizable(0); Fl_Overlay_Window::resize(X,Y,W,H); resizable(t); - set_modflag(1); + // 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); update_xywh(); }