summaryrefslogtreecommitdiff
path: root/platform/osx
AgeCommit message (Collapse)Author
2020-07-21Merge pull request #40450 from asmaloney/spellingRémi Verschelde
Fix spelling & grammar in comments, docs, and messages
2020-07-21Fix spelling & grammar in comments, docs, and messagesAndy Maloney
2020-07-21Merge pull request #40562 from nekomatata/osxcross-vulkan-layerRémi Verschelde
Fix Vulkan layer creation when compiling with OSXCross
2020-07-21Set minimum osx version to 10.12 for OSXCross compilationPouleyKetchoupp
Fixes this compilation error: In file included from thirdparty/vulkan/vk_mem_alloc.cpp:7: thirdparty/vulkan/vk_mem_alloc.h:3691:18: error: 'shared_mutex' is unavailable: introduced in macOS 10.12 std::shared_mutex m_Mutex; ^ /home/[user]/sources/osxcross/target/bin/../SDK/MacOSX10.14.sdk/usr/include/c++/v1/shared_mutex:178:58: note: 'shared_mutex' has been explicitly marked unavailable here class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_mutex
2020-07-21Fix MoltenVK layer creation when compiling with OSXCrossPouleyKetchoupp
2020-07-15Merge pull request #40268 from DanielZTing/masterRémi Verschelde
Fix cancel/OK button order on macOS
2020-07-14[macOS] Fix window size on macOS Big Sur (title bar height is no longer same ↵bruvzg
as menu height), use top-left corner as resize origin instead of bottom-left.
2020-07-14Merge pull request #40354 from bruvzg/add_vulkan_init_messageRémi Verschelde
Display error popup instead of crashing if Vulkan init failed.
2020-07-13Commit other files changed by file_format.shAaron Franke
2020-07-13Add error messages if Vulkan init failed, prevent Vulkan context freeing ↵bruvzg
uninitialized device and instance.
2020-07-10Fix cancel/OK button order on macOSDaniel Ting
The macOS platform convention regarding button order is cancel on left, OK on right.
2020-07-10Add override keywords.Marcel Admiraal
2020-07-09[macOS] Fix transient windows.bruvzg
2020-07-05Merge pull request #40111 from DanielZTing/masterRémi Verschelde
Fix opening URLS with special characters in macOS
2020-07-04[macOS] Implement seamless display scaling.bruvzg
2020-07-03Fix opening URLS with special characters in macOSDaniel Ting
The Online Tutorials section of InputMap in the editor's built-in documentation viewer contains this link: docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html#inputmap The macOS implementation for opening a link percent-encodes it before sending it to the browser, resulting in a 404. This is to fix #13422 where filenames with special characters could not be opened in Finder. However, this breaks URLS so I added a check to see if the resource scheme is file:// and if so, only then is it escaped. This allows other schemes like `http`, `ftp`, and `mailto` to be used.
2020-07-03Improve the situation of DND on X11Juan Linietsky
2020-07-02[macOS] Implement confined mouse mode.bruvzg
2020-07-01Merge pull request #39788 from bruvzg/macos_apple_siliconRémi Verschelde
[macOS] Add support for the Apple Silicon (ARM64) build target.
2020-07-01Environment: Refactor code for readability + moreRémi Verschelde
- Makes all boolean setters/getters consistent. - Fixes bug where `glow_hdr_bleed_scale` was not used. - Split CameraEffects to their own source file. - Reorder all Environment method and properties declarations, definitions and bindings to be consistent with each other and with the order of property bindings. - Bind missing enum values added with SDFGI. - Remove unused SDFGI enhance_ssr boolean. - Sync doc changes after SDFGI merge and other misc changes.
2020-06-30[macOS] Add application become/resign active notifications.bruvzg
2020-06-30[macOS export] Set correct external file attributes (Unix mode), and ↵bruvzg
creation time.
2020-06-29[macOS] Add support for the Apple Silicon (ARM64) build target.bruvzg
2020-06-22macOS, prevent multiple CGDisplayHideCursor calls unpaired with ↵bruvzg
CGDisplayShowCursor.
2020-06-20Set proper file type attribute for OSX zip exportPouleyKetchoupp
The missing file type in file attributes was causing the file to lose executable permissions when unzipped with some softwares.
2020-06-19Rename "Identifier" to "Bundle Identifier" in macOS/iOS export presetsHugo Locurcio
"Bundle Identifier" is more well-understood among macOS and iOS developers and is less ambiguous. This is a slight breaking change as export presets will need to be updated to account for this change. See https://github.com/godotengine/godot-docs/pull/3295.
2020-06-15Merge pull request #39457 from bruvzg/kbd_layoutsRémi Verschelde
Add keyboard layout enumeration / set / get functions.
2020-06-13Add keyboard layout enumeration / set / get functions (macOS, Windows, ↵bruvzg
Linux/X11), remove latin variant function.
2020-06-10macOS export, add notarization support and id / signing / notarization ↵bruvzg
config check.
2020-05-30 Update OSX GUID to SDL uid conversion.Marcel Admiraal
Co-authored-by: John Wakley <johncwakley@users.noreply.github.com>
2020-05-19Merge pull request #33447 from bruvzg/macos_zip_signRémi Verschelde
macOS add signing of DMG and ZIPed export
2020-05-16Fix popup positions on multiple screens (with same scaling only).bruvzg
2020-05-15macOS signing improvements: allow signed app exporting as ZIP, sign DMG ↵bruvzg
after exporting.
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-05-10Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde
Part of #33027.
2020-05-10Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
2020-04-29Merge pull request #37802 from ThakeeNathees/window-position-bug-osx-x11Rémi Verschelde
display server window position bug fix
2020-04-28Rename InputFilter back to InputRémi Verschelde
It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
2020-04-26[macOS] Re-add define for build with 10.14 SDK, remove unsupported 10.12 checks.bruvzg
2020-04-11display server window position bug fix (#37323)Thakee Nathees
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-30SCons: Format buildsystem files with psf/blackRémi Verschelde
Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
2020-03-28Fixed missed occurrences in #37361 renamings.dankan1890
2020-03-26Prevent recursive `_dispatch_input_event` calls, improve focus regain on ↵bruvzg
window deletion.
2020-03-26Add macOS DisplayServer implementation.bruvzg
Change global menu to use Callable, add support for check items and submenus.
2020-03-26Refactored input, goes all via windows now.Juan Linietsky
Also renamed Input to InputFilter because all it does is filter events.
2020-03-26Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky
2020-03-23Merge pull request #37219 from RajatGoswami/missing-include-guardsRémi Verschelde
Adding missing include guards to header files identified by LGTM