go-astilectron icon indicating copy to clipboard operation
go-astilectron copied to clipboard

How to put the window display in front?

Open breece1991 opened this issue 7 years ago • 5 comments

I need to set the window display in front but don't focus on it when I use win.MoveInDisplay or win.Move to move the window

breece1991 avatar Mar 27 '19 11:03 breece1991

Did you try the window.Focus() method?

asticode avatar Mar 28 '19 15:03 asticode

I need to set skipTaskbar: true, so I cannot use window.Focus()win.Show can put the window display in front, but I donnot want the window to be focused.Like win.ShowInactive in electron I have update the issue description. Thanks.

breece1991 avatar Mar 29 '19 02:03 breece1991

Seems like you need to use a specific Electron method that is not implemented yet in go-astilectron: showInactive.

I won't have time to work on this any time soon, but I'm welcoming PRs to add this.

asticode avatar Mar 29 '19 08:03 asticode

Thanks for your comment. I will try this

breece1991 avatar Mar 29 '19 08:03 breece1991

Seems like you need to use a specific Electron method that is not implemented yet in go-astilectron: showInactive.

I won't have time to work on this any time soon, but I'm welcoming PRs to add this.

If the workload is not large,do it as soon as possible? My project really need it😂😂😂

huiruo avatar May 29 '19 03:05 huiruo