From 756cb09bc3caf7b543c495f9c40d3a48bdf31428 Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Mon, 20 Feb 2017 15:45:28 +0100 Subject: [PATCH] Fixed window menu not working on OS X Related to #1091, #527 and #1180. --- src/SFML/Window/OSX/SFWindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/OSX/SFWindow.m b/src/SFML/Window/OSX/SFWindow.m index 38c95e4a..0c32a427 100644 --- a/src/SFML/Window/OSX/SFWindow.m +++ b/src/SFML/Window/OSX/SFWindow.m @@ -93,7 +93,7 @@ //////////////////////////////////////////////////////// -(BOOL)validateMenuItem:(NSMenuItem*)menuItem { - return [menuItem action] == @selector(performClose:); + return [menuItem action] == @selector(performClose:) || [super validateMenuItem:menuItem]; }