From 905d3c710aef8a49f7a8cc4420774103992c8296 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Thu, 15 Oct 2015 10:47:42 +0200 Subject: [PATCH] evas_gl_cocoa: make sure focus is always unlocked after locking it Signed-off-by: Cedric BAIL --- src/modules/evas/engines/gl_cocoa/evas_engine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_cocoa/evas_engine.c b/src/modules/evas/engines/gl_cocoa/evas_engine.c index 9c35280..6c6985a 100644 --- a/src/modules/evas/engines/gl_cocoa/evas_engine.c +++ b/src/modules/evas/engines/gl_cocoa/evas_engine.c @@ -180,7 +180,7 @@ eng_output_redraws_rect_add(void *data, int x, int y, int w, int h) evas_gl_common_context_resize(re->win->gl_context, re->win->width, re->win->height, 0); /* simple bounding box */ RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, re->win->width, re->win->height); - if ((w <= 0) || (h <= 0)) return; + if ((w <= 0) || (h <= 0)) goto end; if (!re->win->draw.redraw) { #if 0 @@ -203,6 +203,7 @@ eng_output_redraws_rect_add(void *data, int x, int y, int w, int h) if ((y + h - 1) > re->win->draw.y2) re->win->draw.y2 = y + h - 1; } re->win->draw.redraw = 1; +end: eng_window_unlock_focus(re->win); } -- 2.7.4