OS:macOSbughelp wanted
描述
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
If the window is hided, it can still be opened by clicking on the icon in the dock. And the reopened window doesn't make any response to the mouse click event(or any other event). The close/minimize/maximize button on the upper left conner of the reopened window doesn't work as well.
I am looking forward to either not allow window reopen from the dock, or make the reopened window clickable.
How to reproduce
- open a Fyne window
- hide the window
- change the focus to any other progress
- click on the icon of the Fyne program in the dock
- the window will show and will not make response to button click
Screenshots
No response
Example code
package main
import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Hello")
hello := widget.NewLabel("Hello Fyne!")
w.SetContent(container.NewVBox(
hello,
widget.NewButton("Hi!", func() {
hello.SetText("Welcome :)")
}),
))
w.SetCloseIntercept(func() { w.Hide() })
w.ShowAndRun()
}
Fyne version
2.2.3
Go compiler version
1.17.2
Operating system
macOS
Operating system version
macOS Monterey 12.1
Additional Information
No response