summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-11 14:25:03 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-11 14:25:03 +0300
commit25456ce008c7fe78378ddaaf784c74209a2d8c14 (patch)
treefbb86324f468ab984ca1be1c25f92872499ed948 /src/main.c
parent2fc802367acd63b86fecda92461d63d029d7378c (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c13b75d1..247c4b40 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,11 +31,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
31 31
32#if defined (iPlatformApple) 32#if defined (iPlatformApple)
33extern void enableMomentumScroll_MacOS(void); 33extern void enableMomentumScroll_MacOS(void);
34extern void registerURLHandler_MacOS(void);
34#endif 35#endif
35 36
36int main(int argc, char **argv) { 37int 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. */