changeset 4650:da460fb294e3

Comment on Jorge's commit.
author Sebastian Geerken
date So, 17 Jul 2016 11:43:09 +0200
parents ad7da0d26dad
children 072f0c158c66
files dw/layout.cc
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw/layout.cc	So Jul 17 11:42:33 2016 +0200
+++ b/dw/layout.cc	So Jul 17 11:43:09 2016 +0200
@@ -866,6 +866,12 @@
 
    static int calls = 0;
 
+   // There are two commits, 2863:b749629fbfc9 and 4645:ab70f9ce4353, the second
+   // reverting the former. Interrestingly, the second fixes a bug. However, it
+   // should still examined what happens here, and what happens the other calls
+   // to Layout::resizeIdle() which should be still in the queue. (See
+   // Layout::queueResize(), where resizeIdleId is indeed checked.)
+
    while (resizeIdleId != -1) {
       printf ("Layout::resizeIdle calls = %d\n", ++calls);
 
@@ -896,7 +902,8 @@
       // If this method is triggered by a viewport change, we can save
       // time when the toplevel widget is not affected (as for a toplevel
       // image resource).
-      if (topLevel && (topLevel->needsResize () || topLevel->needsAllocate ())) {
+      if (topLevel &&
+          (topLevel->needsResize () || topLevel->needsAllocate ())) {
          Requisition requisition;
          Allocation allocation;