Skip to content

Commit 15a4f4f

Browse files
committed
fixes #677 PollEvent() returns nil when screen is suspended
1 parent b05ee8f commit 15a4f4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

console_win.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build windows
22
// +build windows
33

4-
// Copyright 2023 The TCell Authors
4+
// Copyright 2024 The TCell Authors
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use file except in compliance with the License.
@@ -1271,5 +1271,5 @@ func (s *cScreen) EventQ() chan Event {
12711271
}
12721272

12731273
func (s *cScreen) StopQ() <-chan struct{} {
1274-
return s.stopQ
1274+
return s.quit
12751275
}

tscreen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 The TCell Authors
1+
// Copyright 2024 The TCell Authors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use file except in compliance with the License.
@@ -1888,7 +1888,7 @@ func (t *tScreen) finalize() {
18881888
}
18891889

18901890
func (t *tScreen) StopQ() <-chan struct{} {
1891-
return t.stopQ
1891+
return t.quit
18921892
}
18931893

18941894
func (t *tScreen) EventQ() chan Event {

0 commit comments

Comments
 (0)