cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=c380812496f226d6d3243a2b1c083f6aed8a4dc9
commit c380812496f226d6d3243a2b1c083f6aed8a4dc9 Author: pierre lamot <[email protected]> Date: Tue Feb 24 15:50:58 2015 +0100 evas: bypass lockfocus in NSView on OSX this patch bypass calls to (un)lockFocus, avoid segv when closing windows This is certainly not the cleanest way to do it but it seems to be working correctly at the moment. this may leads to unexepected behavior which haven't been identified now @fix Signed-off-by: Cedric BAIL <[email protected]> --- src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m b/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m index 6a4c0ad..882a7d7 100644 --- a/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m +++ b/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m @@ -1,4 +1,3 @@ - #include <Cocoa/Cocoa.h> #include "evas_engine.h" @@ -59,12 +58,16 @@ static NSOpenGLContext *_evas_gl_cocoa_shared_context = NULL; return self; } +- (void)unlockFocus +{ + //[super unlockFocus]; +} + - (void)lockFocus { NSOpenGLContext* context = [self openGLContext]; - [super lockFocus]; - + //[super lockFocus]; if ([context view] != self) { [context setView:self]; } --
