summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2017-03-09 22:56:47 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2017-03-09 23:16:16 +0100
commitfd7f878320caedf822ad12b2128b4570b8890051 (patch)
treedf73d0653bb7d99793df9f2b357067e774c97199 /src/lib/ecore_cocoa
parent7ef27a46691bc90ee3d2675a7b11ef972d49ed48 (diff)
ecore_cocoa: factorize a little access to the cocoa window
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 716fc64980..2edb8b6beb 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -464,13 +464,14 @@ ecore_cocoa_window_resize(Ecore_Cocoa_Window *window,
464 EINA_SAFETY_ON_NULL_RETURN(window); 464 EINA_SAFETY_ON_NULL_RETURN(window);
465 465
466 NSRect win_frame; 466 NSRect win_frame;
467 EcoreCocoaWindow *const win = window->window;
467 468
468 win_frame = [window->window frame]; 469 win_frame = [win frame];
469 win_frame.size.height = h + 470 win_frame.size.height = h +
470 (([window->window isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get()); 471 (([win isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get());
471 win_frame.size.width = w; 472 win_frame.size.width = w;
472 473
473 [window->window setFrame:win_frame display:YES]; 474 [win setFrame:win_frame display:YES];
474} 475}
475 476
476EAPI void 477EAPI void