From 17ea02197d3a73991486d6d34e5b139f08720a85 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 2 May 2012 00:07:52 -0700 Subject: nichrome: Skip recursive box resize There's no need to ask widgets *again* for their preferred sizes, once should suffice. Signed-off-by: Keith Packard --- nichrome/nichrome-box.5c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nichrome') diff --git a/nichrome/nichrome-box.5c b/nichrome/nichrome-box.5c index baf7557..915499b 100644 --- a/nichrome/nichrome-box.5c +++ b/nichrome/nichrome-box.5c @@ -118,6 +118,9 @@ extend namespace Nichrome { } void box_resize (*box_t box, *contained_t contained) { + if (Mutex::owner(box->query_lock) == (mutex_owner.owner) Thread::current()) + return; + twixt(Mutex::acquire(box->query_lock); Mutex::release(box->query_lock)) { int[2] d = dims(box->items); for (int y = 0; y < d[1]; y++) { -- cgit v1.2.3