diff --git a/kitty/cocoa_window.m b/kitty/cocoa_window.m index 80744d3d2..25377c153 100644 --- a/kitty/cocoa_window.m +++ b/kitty/cocoa_window.m @@ -230,8 +230,8 @@ cocoa_send_notification(PyObject *self UNUSED, PyObject *args) { willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler { UNNotificationPresentationOptions options = UNNotificationPresentationOptionSound; - if(@available(macOS 11.0, *)) options |= UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner; - else options |= UNNotificationPresentationOptionAlert; + if (@available(macOS 11.0, *)) options |= UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner; + else options |= (1 << 2); // UNNotificationPresentationOptionAlert avoid deprecated warning completionHandler(options); }