9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.64k stars 326 forks source link

No pointer warping in acme after upgrade to Ubuntu 21.04 #515

Open ebengt opened 3 years ago

ebengt commented 3 years ago

Greetings,

Can I get B3 to warp the pointer in acme when using Wayland?

After upgrading to Ubuntu 21.04 and installing plan9port fresh from github(*) I no longer get pointer warping in acme with B3. It is likely related to Wayland. B3 warped the pointer when I had Ubuntu 20.10. That was with older plan9port(**), but the older acme got the same problem with new Ubuntu. Which is why I installed new plan9port. Some kind of environment variable to set to tell Wayland to start warping pointers?

Focus is correctly moved with B3, it is only the pointer that remains. As soon as I move the pointer focus goes back to the pointer.

The windowing system for Ubuntu 21.04 is Wayland, but unfortunately I never checked what 20.10 had. It is possible to change from Wayland to X. Then the pointer warp. Gnome version is 3.38.5

(*) git log says: commit 70cc6e5ba7798b315c3fb3aae19620a01604a459 (HEAD -> master, origin/master, origin/HEAD) Author: Anthony Sorace a@9srv.net Date: Thu Apr 22 00:16:10 2021 -0700

libthread: use setpgid instead of setpgrp

(**) commit 03a8ec739af17bc4ba0a2e18ea59b33671c34f2b (HEAD -> master) Author: Xiao-Yong Jin xjin@anl.gov Date: Tue Mar 27 10:52:45 2018 -0500

libdraw: fix error in the previous commit
nvkv commented 3 years ago

Same for me, a bit annoying. And it's definitely Wayland-related issue.

lelysses commented 3 years ago

Yeah, I'm sure it's Wayland. 21.04 is the first Ubuntu to default to Wayland. I've been having this the last year or so too but on NixOS using GNOME Wayland, so it's not Ubuntu-specific.

For what it's worth this is a duplicate of #294 but that was closed by the user who opened the issue after deciding to just switch back to X from Wayland.

eaburns commented 3 months ago

I hit this issue too. I wrote a Wayland backend for devdraw that you can test out here if you are interested in giving it a try: https://github.com/eaburns/plan9port/tree/wayland.