ok fuck it i feel like death but might as well do some wayland. all the cool kids are doing it?
first things first though i have to throw wlroots under the bus: 17 releases and no stable API? get it together
ok fuck it i feel like death but might as well do some wayland. all the cool kids are doing it?
first things first though i have to throw wlroots under the bus: 17 releases and no stable API? get it together
next issue is orca key presses being semi-broken: holding buttons doesn't work
on a hunch i enabled the new code for gtk4 and that completely broken key handling. yay
i can't believe anyone actually defends wayland lol
i opened an issue at https://gitlab.gnome.org/GNOME/orca/-/issues/295 maybe @federicomena could give some input
regardless this is going to take years to fix because it involves the linux community agreeing on something, so for now my solution will be to fork orca to act as a clipboard manager or wlroots to disable clipboard security because i just don't give a fuck
so ... is there a way to fix this?
well, the hacky way is to create a brief window, hope it autofocuses, do clipboard junk, then close
this works great for sighted users, but orca would read the window title and probably reset flat review location :)
is there a less hacky way?
well there's a wayland protocol for clipboard management using wlr-data-control. gnome hates this and thinks this is the job of something unrelated to wayland
no window means no or stale data
no focus means empty data
so apparently wayland provides a clipboard and there's also the extension zwp_primary_selection_source_v1_offer
anyway over in gtk land you MUST have a window open and in focus to read the clipboard from my quick testing
much like all this wayland it looks like the clipboard is a hell fire with little to no documentation.
i found the 'unstable' protocol for 'primary-selection'. wlroots doesn't implement it, but instead implements wlr-data-control-unstable-v1
wayland-book.com just gives an empty page for the clipboard lol
ok so it looks like to reliably get/set the clipboard you need to pop up a window for a very brief second. well fuck
okay, i seer what's happening. you need a window to get the clipboard!
orca clipboard code uses something like this:
clipboard = Gtk.Clipboard.get(Gdk.Atom.intern("CLIPBOARD", False))
clipboard.set_text("Hello world!", -1)
this works but isn't the wayland clipboard i guess?
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.