diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-11 14:25:03 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-11 14:25:03 +0300 |
commit | 25456ce008c7fe78378ddaaf784c74209a2d8c14 (patch) | |
tree | fbb86324f468ab984ca1be1c25f92872499ed948 /src/main.c | |
parent | 2fc802367acd63b86fecda92461d63d029d7378c (diff) |
macOS: Handling launch URLs and drop'n'drop
Improved drop and drop event handling: multiple dropped files/URLs open in new tabs. The application registers gemini: as a handled URL scheme.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -31,11 +31,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
31 | 31 | ||
32 | #if defined (iPlatformApple) | 32 | #if defined (iPlatformApple) |
33 | extern void enableMomentumScroll_MacOS(void); | 33 | extern void enableMomentumScroll_MacOS(void); |
34 | extern void registerURLHandler_MacOS(void); | ||
34 | #endif | 35 | #endif |
35 | 36 | ||
36 | int main(int argc, char **argv) { | 37 | int main(int argc, char **argv) { |
37 | #if defined (iPlatformApple) | 38 | #if defined (iPlatformApple) |
38 | enableMomentumScroll_MacOS(); | 39 | enableMomentumScroll_MacOS(); |
40 | registerURLHandler_MacOS(); | ||
39 | #endif | 41 | #endif |
40 | #if defined (iPlatformMsys) | 42 | #if defined (iPlatformMsys) |
41 | /* MSYS runtime takes care of WinMain. */ | 43 | /* MSYS runtime takes care of WinMain. */ |