Apply same fix on opaqueness

This commit is contained in:
Adlai Holler
2016-02-17 13:41:13 -08:00
parent b0cbd2dd59
commit 7a6006e627

View File

@@ -333,14 +333,11 @@ if (shouldApply) { _layer.layerProperty = (layerValueExpr); } else { _pendingVie
- (void)setOpaque:(BOOL)newOpaque
{
BOOL prevOpaque = self.opaque;
_bridge_prologue_write;
_setToLayer(opaque, newOpaque);
if (prevOpaque != newOpaque) {
[self setNeedsDisplay];
}
// FIXME: Would like to setNeedsDisplay if opaqueness changed, but
// not safe to read old value in background.
}
- (BOOL)isUserInteractionEnabled