From 15a4f4f1fbb3801961a72dd2d40836a7c178f8dd Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 15 Feb 2024 22:25:45 -0800 Subject: [PATCH] fixes #677 PollEvent() returns nil when screen is suspended --- console_win.go | 4 ++-- tscreen.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/console_win.go b/console_win.go index ffa0049..af169a3 100644 --- a/console_win.go +++ b/console_win.go @@ -1,7 +1,7 @@ //go:build windows // +build windows -// Copyright 2023 The TCell Authors +// Copyright 2024 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use file except in compliance with the License. @@ -1271,5 +1271,5 @@ func (s *cScreen) EventQ() chan Event { } func (s *cScreen) StopQ() <-chan struct{} { - return s.stopQ + return s.quit } diff --git a/tscreen.go b/tscreen.go index b804aff..4c352dc 100644 --- a/tscreen.go +++ b/tscreen.go @@ -1,4 +1,4 @@ -// Copyright 2023 The TCell Authors +// Copyright 2024 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use file except in compliance with the License. @@ -1888,7 +1888,7 @@ func (t *tScreen) finalize() { } func (t *tScreen) StopQ() <-chan struct{} { - return t.stopQ + return t.quit } func (t *tScreen) EventQ() chan Event {