fyne-io/fyne

Can open hided window from macOS dock with no response

Open

#3,197 opened on 2022年8月9日

GitHub で見る
 (8 comments) (1 reaction) (0 assignees)Go (28,262 stars) (1,526 forks)batch import
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

  1. open a Fyne window
  2. hide the window
  3. change the focus to any other progress
  4. click on the icon of the Fyne program in the dock
  5. 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

コントリビューターガイド

Can open hided window from macOS dock with no response · fyne-io/fyne#3197 | Good First Issue