Search code examples
haxeopenflhaxeflixel

How to move border-less window around?


I made simple and small application with a clock using HaxeFlixel and native build. The window can't be resized or even moved because I made it border-less in project.xml.

The only way to move this window now is to hook to mouseMove event and set the window's position accordingly. The first sounds simple but the latter troubles me. I've been looking in Haxe API, OpenFL API and Haxelib but I can't find anything that could move the window around.

Here's the clock:


Solution

  • I made this project based on the function Lib.application.window.move(x, y);

    https://github.com/RafaelOliveira/MoveOpenFlWindow

    It isn't very smooth, I'm trying to improve that, but it's working.