treeform / windy

Windowing library for Nim using OS native APIs.
MIT License
117 stars 16 forks source link

default center window #107

Open bung87 opened 1 year ago

bung87 commented 1 year ago

I tried figure out how to center window, then I found windy position window to left and top default internally, the macOS default behavior is center window.

treeform commented 1 year ago

Sorry can you explain your bug a big better?

We don't use macOS strange coordinate system, we tried to make window positioning same on every platform. I think if you don't set anything it will just open default for the OS?

bung87 commented 1 year ago

sorry for my bad English, I mean on macOS when open a brand new application, it will position the window at center of screen, well, windy open window at left top. the center position should calculate by the developer.