Mouse pointer hidden (Ubuntu Wayland) / Cursor icon not changing
Issue
After I opened the terminal, when I press the key the cursor disappear, and only re-appear when I move it outside the window. Also when I run with RIO_LOG_LEVEL=info there are a bunch of warnings: [WARN] winit::platform_impl::platform::wayland::window::state Failed to set cursor to Text when I am moving the cursor inside the terminal
Config
I using rio version 0.0.30 and also the one from the main branch. I didn't modify the font.
I am on Ubuntu 22.04 using Wayland (and zsh)
Also, when moving the cursor in the window terminal (when the icon is visible), it doesn't modify its icon (like when moving to the edge to resize the window), and only when clicking will it modify the icon accordingly
Do you have cursor set explicitly in the config.toml? If not try doing that and report back.
cursor = "▇"
blinking-cursor = true
Do you have cursor set explicitly in the
config.toml? If not try doing that and report back.cursor = "▇" blinking-cursor = true
I've tried to not the cursor, try the bar cursor, set the blinking-cursor to true and false, but it doesn't change anything
I found not issue on winit with the filters is:issue is:open label:"DS - wayland" cursor
weird. Can you post output of RIO_LOG_LEVEL=debug rio > debug_log-rio.txt here? while capturing log, replicate your scenario. Also Can you write exact steps to reproduce your bug in the main post.? Include your configuration too. Thanks
Step to reproduce : just start the rio terminal (on Ubuntu with gnome and wayland and the default config from Rio)
debug_rio_log.txt Here is a log file
after a few googling sessions, I was able to find this https://github.com/wez/wezterm/commit/ecc63e2e5d4938049f9bd36ba70deb379315c3ea in the Wezterm git. Major issue is that the cursor is looking for text type which has less compatibility. One way we could fix is by switching to xterm as wezterm did instead of text. Read the ISSUE on wez/wezterm maybe this is the culprit: https://github.com/raphamorim/rio/blob/b9c1732a9e26569a2beb9d63eebe9e5f1cc33e9a/frontends/cross-winit/src/router/window/mod.rs#L143
Good findings @RaySlash
Wonder if we could use CursorIcon still, they have a map for alternative as well https://github.com/rust-windowing/cursor-icon/blob/main/src/lib.rs#L340
That should be good. Seems like a solid plan for now. We could setup alt_names as a fallback just exactly as its described in cursor-icon. 🥳
I think @PitiBouchon is talking about the mouse pointer, and not the cursor in the terminal. When they start typing in the window, the mouse pointer disappears (which is the default behaviour in the os) and does not become visible again when they move the mouse pointer outside the window.
@PitiBouchon could you check if the behaviour is same in other programs like firefox for eg.? Like, try typing inside a form in firefox (which would cause the pointer to disappear) and then move the pointer.
Yup, I think I used cursor instead of mouse pointer indeed
The default behavior is what you said, when typing something the pointer disappear and then should appear when moving it. But it doesn't work for me when using rio (on ubuntu wayland)
I also have the issue with the cursor not changing icon when I move the mouse pointer near the edges or on the top bar of the window
One thing to add to this: for me, the mouse pointer comes back when there is another window on the current desktop. Are you seeing the same behavior? Maybe this detail could be useful?
I am not seeing the same problem in other programs, including Firefox. I am on NixOS+Gnome+Wayland.
Same issue here, also this is a Wayland-specific issue, not an Ubuntu-specific issue. Related #254
I think this is fixed since the 0.1.X release
That's great! Yea, I couldn't also reproduce anymore with 0.1.8. Closing this issue for now, thanks for the heads up @PitiBouchon
That's great! Yea, I couldn't also reproduce anymore with 0.1.8. Closing this issue for now, thanks for the heads up @PitiBouchon
When typing it disappears (the mouse cursor), which is expected, but when I stop typing the cursor doesn't reappear? I assume this is another issue? :P
I'm still getting this issue in 0.1.8 and 0.1.10. It happens before any other windows/apps are open.
I'm still getting this issue in 0.1.8 and 0.1.10. It happens before any other windows/apps are open.
-
Wayland as well?
-
Same as the original issue or the one @nyabinary mentioned?
🙏
Yup, on NixOS unstable + Wayland. You're right, I think it's more the other issue.
Thank you for you reply, could open another issue so can keep track on it?
No problem, sure
#647