antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.
MIT License
217 stars 54 forks source link

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

Closed sgehrman closed 2 years ago

sgehrman commented 3 years ago

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

sgehrman commented 3 years ago

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.