Skip to content

Commit

Permalink
ensure run loop is reactivated when reshowing hidden window on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed May 5, 2023
1 parent fd2067b commit ca61c15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/driver/glfw/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,10 @@ func (w *window) processCharInput(char rune) {

func (w *window) processFocused(focus bool) {
if focus {
// On Mac OS, hidden windows can be re-shown from the dock icon, which issues
// a GLFW window focus callback. We need to make sure the run loop is re-activated.
go w.doShow()

if curWindow == nil {
fyne.CurrentApp().Lifecycle().(*app.Lifecycle).TriggerEnteredForeground()
}
Expand Down

0 comments on commit ca61c15

Please sign in to comment.