antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macos: You can't drag the window if not active.

sgehrman opened this issue · comments

I have to click the window first before being able to drag it. This is very annoying as it's different from every other mac app.

Maybe the acceptsFirstMouse needs to get set somehow?
https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse

I modified the engine and added acceptsFirstMouse to FlutterView.mm and that worked, but I wasn't able to compile the system_tray example with my hacked engine. It complained about the bitsdojo window code. It might have been just that I'm not good at modifiying the engine and building it correctly, but it did work for my app.