]> git.saurik.com Git - winterboard.git/commitdiff
Redraw labels as they move.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 20 Oct 2011 07:26:41 +0000 (07:26 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 20 Oct 2011 07:26:41 +0000 (07:26 +0000)
Library.mm

index f3e01aed4d18c8c2a7c450380541c11e4b45bcc5..fa44fbb0002bdfa3c33773fdcf0b6ebe380cfacb 100644 (file)
@@ -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) {