From 4d85d8d742d5b028e6609c6dd757ceb466813b28 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Tue, 19 Mar 2019 09:15:48 +0100 Subject: [PATCH] Take first on multiple files dropped --- Sources/arm/App.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/arm/App.hx b/Sources/arm/App.hx index cad59320..6b975766 100644 --- a/Sources/arm/App.hx +++ b/Sources/arm/App.hx @@ -78,6 +78,8 @@ class App extends iron.Trait { kha.System.notifyOnDropFiles(function(filePath:String) { dropPath = StringTools.rtrim(filePath); dropPath = StringTools.replace(dropPath, "%20", " "); // Linux can pass %20 on drop + dropPath = dropPath.split("file://")[0]; // Multiple files dropped on Linux, take first + var mouse = iron.system.Input.getMouse(); dropX = mouse.x; dropY = mouse.y;