Right click->Quit on the godot icon will now close the application on OSX.
Fixed get_window_position that missed a return on OSX.
This commit is contained in:
parent
280e3611b9
commit
76ab7d3886
|
@ -139,11 +139,9 @@ static int button_mask=0;
|
||||||
|
|
||||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
|
||||||
{
|
{
|
||||||
/* _Godotwindow* window;
|
if (OS_OSX::singleton->get_main_loop())
|
||||||
|
OS_OSX::singleton->get_main_loop()->notification(MainLoop::NOTIFICATION_WM_QUIT_REQUEST);
|
||||||
|
|
||||||
for (window = _Godot.windowListHead; window; window = window->next)
|
|
||||||
_GodotInputWindowCloseRequest(window);
|
|
||||||
*/
|
|
||||||
return NSTerminateCancel;
|
return NSTerminateCancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1463,6 +1461,7 @@ Point2 OS_OSX::get_window_position() const {
|
||||||
|
|
||||||
Size2 wp([window_object frame].origin.x, [window_object frame].origin.y);
|
Size2 wp([window_object frame].origin.x, [window_object frame].origin.y);
|
||||||
wp*=display_scale;
|
wp*=display_scale;
|
||||||
|
return wp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue