atx / wtype

xdotool type for wayland
MIT License
348 stars 13 forks source link

wtype hangs on Sway #8

Closed curiositry closed 3 years ago

curiositry commented 3 years ago

I have built Sway v1.5-rc2 to get the fix for Issue #6, and built the latest version of wtype. However, when I run wtype (for example, wtype ∇⋅∇ψ = ρ), it hangs with no output or error message. (If I run it with no arguments, it behaves as expected: Usage: wtype <text-to-type>). Any idea what I might be doing wrong? Thanks!

(I'm a complete amateur when it comes to Wayland and C, so I'm probably just missing something obvious...)

atx commented 3 years ago

Should be fixed now (though my Wayland-fu is a bit rusty at the moment and I am not exactly sure why was it broken in the first place).

curiositry commented 3 years ago

Thanks @atx! wtype now works as intended with Sway on Ubuntu 20.04 when triggered on wayland windows. (Still pasting odd things when triggered when an Xwayland window is focussed, but that's a different issue.)