Revision: 4813
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4813&view=rev
Author:   ossman_
Date:     2011-11-21 14:04:29 +0000 (Mon, 21 Nov 2011)
Log Message:
-----------
Fix bad FLTK window resize handling on OS X.

http://www.fltk.org/str.php?L2775

Modified Paths:
--------------
    trunk/common/fltk/src/Fl_cocoa.mm

Modified: trunk/common/fltk/src/Fl_cocoa.mm
===================================================================
--- trunk/common/fltk/src/Fl_cocoa.mm   2011-11-21 14:03:31 UTC (rev 4812)
+++ trunk/common/fltk/src/Fl_cocoa.mm   2011-11-21 14:04:29 UTC (rev 4813)
@@ -2598,6 +2598,12 @@
       pt.y = [[(NSWindow*)i->xid screen] frame].size.height - (Y + h());
       [(NSWindow*)i->xid setFrameOrigin:pt];
     }
+    // setFrame and setFrameOrigin are only requests to the system to
+    // do a resize or move. We will get callbacks later if the system allowed
+    // this, and possibly with adjusted values. We avoid processing until
+    // that happens (which usually happens directly as setFrame[Origin] is
+    // called).
+    return;
   }
   resize_from_system = 0;
   if (is_a_resize) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to