summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-15 10:47:42 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commitbf025100249a1450b57e0e677f2aaba8e35f9a8e (patch)
tree5bb582e27f13909f7a02bb86c8ff22a77a6454f1
parentdbe57695ef956d2fd3cb24fa60a10c5f027e3c64 (diff)
evas_gl_cocoa: make sure focus is always unlocked after locking it
-rw-r--r--src/modules/evas/engines/gl_cocoa/evas_engine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_cocoa/evas_engine.c b/src/modules/evas/engines/gl_cocoa/evas_engine.c
index 8597b05809..8097e92e9d 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)
180 evas_gl_common_context_resize(re->win->gl_context, re->win->width, re->win->height, 0); 180 evas_gl_common_context_resize(re->win->gl_context, re->win->width, re->win->height, 0);
181 /* simple bounding box */ 181 /* simple bounding box */
182 RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, re->win->width, re->win->height); 182 RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, re->win->width, re->win->height);
183 if ((w <= 0) || (h <= 0)) return; 183 if ((w <= 0) || (h <= 0)) goto end;
184 if (!re->win->draw.redraw) 184 if (!re->win->draw.redraw)
185 { 185 {
186#if 0 186#if 0
@@ -203,6 +203,7 @@ eng_output_redraws_rect_add(void *data, int x, int y, int w, int h)
203 if ((y + h - 1) > re->win->draw.y2) re->win->draw.y2 = y + h - 1; 203 if ((y + h - 1) > re->win->draw.y2) re->win->draw.y2 = y + h - 1;
204 } 204 }
205 re->win->draw.redraw = 1; 205 re->win->draw.redraw = 1;
206end:
206 eng_window_unlock_focus(re->win); 207 eng_window_unlock_focus(re->win);
207} 208}
208 209