Add the announcement of switched workspaces from Niri.
I haven't tested this with Braille support; I don't remember what I did with the cable.
This commit is contained in:
1 parent
702894ee4a
commit
1780afccba
14 files changed
+393
-2
No files matched your search
@@ -110,6 +110,13 @@ func (handler *accessibilityEventHandler) handle(event atspi.Event) {
|
||||
"selection_start", event.Source.SelectionStart,
|
||||
"selection_end", event.Source.SelectionEnd)
|
||||
}
|
||||
if event.Type == atspi.AnnouncementEvent {
|
||||
// Announcements are explicit requests to speak from providers that
|
||||
// may never own focus or the foreground window. Present them before
|
||||
// any ownership gating, and never let them move focus state.
|
||||
handler.presentAnnouncement(event)
|
||||
return
|
||||
}
|
||||
syncForeground()
|
||||
if handler.handle_window_switcher(event) {
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user