diff --git a/Source/NSScroller.m b/Source/NSScroller.m index 5f15ade44..dfadb3b51 100644 --- a/Source/NSScroller.m +++ b/Source/NSScroller.m @@ -613,9 +613,7 @@ static const float buttonsWidth = 16; if (theCell) { - [self lockFocus]; [theCell highlight: YES withFrame: rect inView: self]; - [self unlockFocus]; [window flushWindow]; NSDebugLog (@"tracking cell %x", theCell); @@ -625,9 +623,7 @@ static const float buttonsWidth = 16; ofView: self untilMouseUp: YES]; - [self lockFocus]; [theCell highlight: NO withFrame: rect inView: self]; - [self unlockFocus]; [window flushWindow]; } diff --git a/Source/NSSlider.m b/Source/NSSlider.m index 833248c49..fd33e2a5f 100644 --- a/Source/NSSlider.m +++ b/Source/NSSlider.m @@ -281,8 +281,6 @@ static Class cellClass; NSSliderCell* theCell = [self cell]; NSRect rect; - [self lockFocus]; - rect = [theCell knobRectFlipped: [self isFlipped]]; if (![self mouse: location inRect: rect]) { @@ -300,7 +298,6 @@ static Class cellClass; [self trackKnob: theEvent knobRect: rect]; - [self unlockFocus]; } @end