Author: manolo
Date: 2012-10-16 08:48:24 -0700 (Tue, 16 Oct 2012)
New Revision: 9700
Log:
Fix STR #2859: after a window resize refused by the window manager, the window 
becomes freezed.

Modified:
   branches/branch-3.0/src/fltk3/x11.cxx

Modified: branches/branch-3.0/src/fltk3/x11.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/x11.cxx       2012-10-16 15:35:34 UTC (rev 
9699)
+++ branches/branch-3.0/src/fltk3/x11.cxx       2012-10-16 15:48:24 UTC (rev 
9700)
@@ -1672,14 +1672,13 @@
 void fltk3::Window::resize(int X,int Y,int W,int H) {
   int is_a_move = (X != x() || Y != y());
   int is_a_resize = (W != w() || H != h());
-  int is_a_enlarge = (W > w() || H > h());
   int resize_from_program = (this != resize_bug_fix);
   if (!resize_from_program) resize_bug_fix = 0;
   if (is_a_move && resize_from_program) set_flag(FORCE_POSITION);
   else if (!is_a_resize && !is_a_move) return;
   if (is_a_resize) {
     fltk3::Group::resize(X,Y,W,H);
-    if (shown()) {redraw(); if(is_a_enlarge) i->wait_for_expose = 1;}
+    if (shown()) {redraw();}
   } else {
     x(X); y(Y);
   }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to