From aa974b2aa7b99ec94f66272a7ddd4bfc62438a2f Mon Sep 17 00:00:00 2001 From: Akemi Date: Wed, 28 Feb 2018 00:46:16 +0100 Subject: cocoa-cb: make fullscreen resize animation duration configurable --- osdep/macosx_application.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'osdep') diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index fe117f7a1c..4bc8eec0eb 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -42,6 +42,7 @@ struct macos_opts { int macos_title_bar_style; + int macos_fs_animation_duration; }; #define OPT_BASE_STRUCT struct macos_opts @@ -50,9 +51,15 @@ const struct m_sub_options macos_conf = { OPT_CHOICE("macos-title-bar-style", macos_title_bar_style, 0, ({"dark", 0}, {"ultradark", 1}, {"light", 2}, {"mediumlight", 3}, {"auto", 4})), + OPT_CHOICE_OR_INT("macos-fs-animation-duration", + macos_fs_animation_duration, 0, 0, 1000, + ({"default", -1})), {0} }, .size = sizeof(struct macos_opts), + .defaults = &(const struct macos_opts){ + .macos_fs_animation_duration = -1, + }, }; // Whether the NSApplication singleton was created. If this is false, we are -- cgit v1.2.3