Ignore stale table row focus after selection changes

This commit is contained in:
ak47 committed 2026-11-10 21:49:04 -05:00
1 parent 2fb4a1b9a0
commit 873967d18a
5 files changed
+106 -3

No files matched your search

+3 -1
View File
@@ -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 {