lxn / walk

A Windows GUI toolkit for the Go Programming Language
Other
6.79k stars 885 forks source link

Dialogs appear on the wrong monitor #708

Open ktye opened 3 years ago

ktye commented 3 years ago

Sometimes dialogs appear on the wrong monitor (different from the main window, which is the owner).

example:

this seems to fix it

file walk/dialog.go:
181                                 dlg.SetBoundsPixels(fitRectToScreen(dlg.owner.Handle(), Rectangle{
182                                 //dlg.SetBoundsPixels(fitRectToScreen(dlg.hWnd, Rectangle{

isn't that the intention, to look for the monitor of the parent widget?