From e965c1e5c828ed9a5d03a2448524fc67c9bef226 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" <saurik@saurik.com> Date: Thu, 20 Oct 2011 07:26:41 +0000 Subject: [PATCH] Redraw labels as they move. --- Library.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library.mm b/Library.mm index f3e01ae..fa44fbb 100644 --- a/Library.mm +++ b/Library.mm @@ -1389,9 +1389,12 @@ MSHook(void, SBIconLabel$setInDock$, SBIconLabel *self, SEL sel, BOOL docked) { id &_label(MSHookIvar<id>(self, "_label")); if (![Info_ wb$boolForKey:@"UndockedIconLabels"]) docked = true; + if (_label != nil && [_label respondsToSelector:@selector(setInDock:)]) [_label setInDock:docked]; - return _SBIconLabel$setInDock$(self, sel, docked); + + _SBIconLabel$setInDock$(self, sel, docked); + [self setNeedsDisplay]; } MSHook(BOOL, SBDockIconListView$shouldShowNewDock, id self, SEL sel) { -- 2.47.2