libreoffice support started, still broken. Some updates to how wine-access gets called.

This commit is contained in:
Storm Dragon committed 2026-10-14 16:24:49 -04:00
1 parent 8e76d2341c
commit 7f78177786
26 files changed
+1173 -21

No files matched your search

@@ -301,6 +301,8 @@ func (adapter *Adapter) enrichNativeWindowEvent(event *C.AtspiEvent, target *C.A
focusEvent.Source = snapshot
}
if !focusEvent.ForegroundMismatch {
captureLibreOfficeContext(target, &snapshot)
focusEvent.Source = snapshot
if eventType == FocusEvent || eventType == FocusedStateEvent && focusEvent.Detail1 != 0 || eventType == CaretEvent || eventType == ActiveDescendantEvent || eventType == SelectionChangedEvent {
snapshot.SpeechContext, snapshot.BrailleContext = native_speech_context(target)
for _, ancestor := range snapshot.SpeechContext {
@@ -415,7 +417,11 @@ func cthulhuAtspiEventCallback(event *C.AtspiEvent, userData unsafe.Pointer) {
return
}
snapshotStarted := time.Now()
target, ownedTarget := selectNativeEventTarget(event, eventType)
target := adapter.libreOfficeFocusTarget(event, eventType)
ownedTarget := target != nil
if target == nil {
target, ownedTarget = selectNativeEventTarget(event, eventType)
}
if target == nil {
return
}