Ignore stale table row focus after selection changes
This commit is contained in:
1 parent
2fb4a1b9a0
commit
873967d18a
5 files changed
+106
-3
No files matched your search
@@ -362,7 +362,9 @@ func TestNativeYADListInitialRow(t *testing.T) {
|
||||
case <-ctx.Done():
|
||||
t.Fatalf("menu event missing at navigation stage %d", stage)
|
||||
case event := <-adapter.Events():
|
||||
if event.Source.ApplicationName != "yad" {
|
||||
// Startup can queue a focus event before X11 owns the window.
|
||||
// Those events intentionally omit table metadata and are not presented.
|
||||
if event.Source.ApplicationName != "yad" || event.ForegroundMismatch {
|
||||
continue
|
||||
}
|
||||
if stage == 0 {
|
||||
|
||||
Reference in new issue
Block a user