evas_gl_cocoa: make sure focus is always unlocked after locking it 97/82897/3
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Thu, 15 Oct 2015 08:47:42 +0000 (10:47 +0200)
committerHermet Park <chuneon.park@samsung.com>
Fri, 2 Sep 2016 02:59:53 +0000 (19:59 -0700)
Change-Id: Ib14f1af3a4c78e5b51aef5d5231d283cab476005
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/evas/engines/gl_cocoa/evas_engine.c

index e30a955..cb1971f 100644 (file)
@@ -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, 1);
    /* 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);
 }