mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
iOS: Remove didAddSubview override in NSWindow, its code breaks things which rely on focus changing within SDL's UIWindow (bug #4659).
This commit is contained in:
parent
2fa33d6f98
commit
74e86a51d8
@ -67,20 +67,6 @@
|
|||||||
|
|
||||||
@implementation SDL_uikitwindow
|
@implementation SDL_uikitwindow
|
||||||
|
|
||||||
- (void)didAddSubview:(UIView *)subview
|
|
||||||
{
|
|
||||||
[super didAddSubview:subview];
|
|
||||||
// We need to pach the enabled state in subviews as a Metal view gets added and covers up the SDL_uikitview that handles touch.
|
|
||||||
// So set needs layout so that the layout gets done (which is where we patch the flags) Johna.
|
|
||||||
NSArray<UIView*>* subviews = self.subviews;
|
|
||||||
for (int i=0; i<[subviews count]; i++)
|
|
||||||
{
|
|
||||||
UIView *view = [subviews objectAtIndex:i];
|
|
||||||
// NSLog( @"View %p enabled %d\n", view, view.userInteractionEnabled );
|
|
||||||
[view setNeedsLayout]; // force the subviews to layout.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)layoutSubviews
|
- (void)layoutSubviews
|
||||||
{
|
{
|
||||||
/* Workaround to fix window orientation issues in iOS 8+. */
|
/* Workaround to fix window orientation issues in iOS 8+. */
|
||||||
|
Loading…
Reference in New Issue
Block a user