Skip to content

Commit 485ecab

Browse files
couetdpiparo
authored andcommitted
- Fix a textedit issue with Cocoa
(cherry picked from commit 464bae7)
1 parent d5a8816 commit 485ecab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

graf2d/cocoa/src/QuartzWindow.mm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,6 +2612,18 @@ - (BOOL) acceptsCrossingEvents : (unsigned) eventMask
26122612
return accepts;
26132613
}
26142614

2615+
//______________________________________________________________________________
2616+
- (void)didAddSubview:(NSView *)subview
2617+
{
2618+
self.clipsToBounds = YES;
2619+
}
2620+
2621+
//______________________________________________________________________________
2622+
- (void)willRemoveSubview:(NSView *)subview
2623+
{
2624+
self.clipsToBounds = self.subviews.count > 1;
2625+
}
2626+
26152627
//______________________________________________________________________________
26162628
- (void) addChild : (NSView<X11Window> *) child
26172629
{

0 commit comments

Comments
 (0)