Module: wine Branch: master Commit: c9528f09074a7836e87f2698101135d1ed16fae2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9528f09074a7836e87f269810...
Author: Ken Thomases ken@codeweavers.com Date: Thu Apr 20 20:53:16 2017 -0500
winemac: Invalidate cached hasGLDescendant value unconditionally when the view is hidden or unhidden.
Even if the (un)hidden view doesn't have attached GL contexts itself, its descendants may. It doesn't make sense not to check them just because this view doesn't have GL contexts.
Signed-off-by: Ken Thomases ken@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winemac.drv/cocoa_window.m | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index af8ebe7..c67dd07 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -617,18 +617,14 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi - (void) viewDidHide { [super viewDidHide]; - if ([self hasGLContext]) - [self invalidateHasGLDescendant]; + [self invalidateHasGLDescendant]; }
- (void) viewDidUnhide { [super viewDidUnhide]; - if ([self hasGLContext]) - { - [self updateGLContexts:YES]; - [self invalidateHasGLDescendant]; - } + [self updateGLContexts:YES]; + [self invalidateHasGLDescendant]; }
- (void) completeText:(NSString*)text