From 9f36c818bc9f19c90754dc02c5849c9e7cefea6c Mon Sep 17 00:00:00 2001
From: slevy <slevy>
Date: Tue, 7 Sep 2010 19:51:04 +0000
Subject: [PATCH] In main(), just after startup: Don't do explicit
 Apple-specific resize() of main window.  Apparently this used to be necessary
 to trigger initial redraw, but (in more recent versions of FLTK?) just causes
 the main window to become non-resizable.  Toss it.

Thanks to Jonathan Strawn <jonnyflash@gmail.com>,
UNM ARTS Lab, for figuring this out.
---
 src/partiview.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/partiview.cc b/src/partiview.cc
index 30592a1..52b4ed4 100644
--- a/src/partiview.cc
+++ b/src/partiview.cc
@@ -1195,11 +1195,15 @@ int main(int argc, char *argv[])
   ppui_refresh(NULL);
   //end of replaces the above ...
 
-#ifdef __APPLE__
+#if 0 /* was: #ifdef __APPLE__ */
   Fl_Window* mw = ppui.mainwin;
   Fl::wait(.1);
   ppui.mainwin->resize(mw->x()+1, mw->y()+1, mw->w()+1, mw->h()+1); //marx: version 0.7.04
   //the resize compensates for bug that appears under os x only - damage to widgets does not cause redraw but resize seems to cause the needed redraw
+  // this bug appears to be fixed (by fltk 1.1.10, probably earlier),
+  // and doing this causes the main window to be non-resizable,
+  // so let's toss it.  Thanks to Jonathan Strawn <jonnyflash@gmail.com>,
+  // UNM ARTS Lab, for figuring this out. -slevy
 #endif
 
   if(ppui.reqwinsize != NULL) {
-- 
GitLab