Present popup before focus lookup

This commit is contained in:
2026-09-12 13:40:28 +02:00
parent 40b2cb3e83
commit d585958d6d
2 changed files with 6 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ Each bounded iteration must:
- [x] Make self-generated clipboard suppression deterministic and race-resistant (queued-write marker lifecycle and Docker GTK/X11 build, 2026-09-10).
- [x] Ensure failed internal clipboard writes cannot poison suppression state (worker reports write success separately; 17 tests and Docker build, 2026-09-10).
- [x] Add unit coverage for configured shortcut parsing and lock-state grab variants (17 tests and Docker GTK/X11 build, 2026-09-10).
- [ ] Verify global shortcut registration, cleanup, conflicts, and configured shortcuts.
- [ ] Verify global shortcut registration, cleanup, conflicts, and configured shortcuts (popup now presents immediately while target-focus capture completes asynchronously).
- [ ] Verify previous-focus capture and paste behavior against real X11 applications.
- [x] Preserve readable textual clipboard contents after paste injection fails;
retain the selected entry only when the original clipboard cannot be read or
@@ -74,7 +74,7 @@ Each bounded iteration must:
existing config overrides remain supported (27 X11-feature tests and Docker
GTK/X11/package build, 2026-09-12).
- [ ] Verify tray activation/menu behavior and graceful tray unavailability.
- [ ] Verify second invocation/show behavior including diagnostics.
- [ ] Verify second invocation/show behavior including diagnostics (show requests now present immediately while target-focus capture completes asynchronously).
- [x] Make `--diagnostics` inspect the running installation without triggering a
show request, and report the log directory plus instance state (20 tests and
Docker GTK/X11/package build, 2026-09-12).

View File

@@ -483,6 +483,8 @@ fn build_window(
window_for_events.set_visible(false);
} else {
request_focus(&mut state);
window_for_events.present();
search_for_events.grab_focus();
}
}
if state.show_requested.swap(false, Ordering::AcqRel) {
@@ -490,6 +492,8 @@ fn build_window(
window_for_events.set_visible(false);
} else {
request_focus(&mut state);
window_for_events.present();
search_for_events.grab_focus();
}
}
if let Some(result) = state.clipboard_reader.try_result() {