diff options
author | Sebastian Geerken <devnull@localhost> | 2016-07-17 11:43:09 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-07-17 11:43:09 +0200 |
commit | a77b6ffde98421343157f60dfc12beb7ec4d25f3 (patch) | |
tree | 3bb62aba8eceec167f1af4bd4da08a911d703141 /dw | |
parent | 6e821f12d38973591852ba37014f0e9ce96b521e (diff) |
Comment on Jorge's commit.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/layout.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index 07827754..09e27cdb 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -866,6 +866,12 @@ void Layout::resizeIdle () 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 @@ void Layout::resizeIdle () // 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; |