summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_window.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa/ecore_cocoa_window.m')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index e50e9c334a..b1d7d6e59f 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -64,7 +64,7 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
64 CRI("Failed to allocate Ecore_Cocoa_Event_Window"); 64 CRI("Failed to allocate Ecore_Cocoa_Event_Window");
65 return; 65 return;
66 } 66 }
67 event->wid = [notification object]; 67 event->cocoa_window = [notification object];
68 ecore_event_add(ECORE_COCOA_EVENT_WINDOW_DESTROY, event, NULL, NULL); 68 ecore_event_add(ECORE_COCOA_EVENT_WINDOW_DESTROY, event, NULL, NULL);
69} 69}
70 70
@@ -82,7 +82,7 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
82 event->w = size.width; 82 event->w = size.width;
83 event->h = size.height - 83 event->h = size.height -
84 (([self isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get()); 84 (([self isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get());
85 event->wid = [notif object]; 85 event->cocoa_window = [notif object];
86 ecore_event_add(ECORE_COCOA_EVENT_RESIZE, event, NULL, NULL); 86 ecore_event_add(ECORE_COCOA_EVENT_RESIZE, event, NULL, NULL);
87 87
88 /* 88 /*
@@ -107,7 +107,7 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
107 CRI("Failed to allocate Ecore_Cocoa_Event_Window"); 107 CRI("Failed to allocate Ecore_Cocoa_Event_Window");
108 return; 108 return;
109 } 109 }
110 e->wid = [notification object]; 110 e->cocoa_window = [notification object];
111 ecore_event_add(ECORE_COCOA_EVENT_GOT_FOCUS, e, NULL, NULL); 111 ecore_event_add(ECORE_COCOA_EVENT_GOT_FOCUS, e, NULL, NULL);
112} 112}
113 113
@@ -131,7 +131,7 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
131 CRI("Failed to allocate Ecore_Cocoa_Event_Window"); 131 CRI("Failed to allocate Ecore_Cocoa_Event_Window");
132 return; 132 return;
133 } 133 }
134 e->wid = [notification object]; 134 e->cocoa_window = [notification object];
135 ecore_event_add(ECORE_COCOA_EVENT_LOST_FOCUS, e, NULL, NULL); 135 ecore_event_add(ECORE_COCOA_EVENT_LOST_FOCUS, e, NULL, NULL);
136} 136}
137 137
@@ -588,8 +588,8 @@ ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
588 [area release]; 588 [area release];
589} 589}
590 590
591EAPI Ecore_Cocoa_Window_Id 591EAPI Ecore_Cocoa_Object *
592ecore_cocoa_window_get_window_id(const Ecore_Cocoa_Window *window) 592ecore_cocoa_window_get(const Ecore_Cocoa_Window *window)
593{ 593{
594 EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL); 594 EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL);
595 return window->window; 595 return window->window;