Cursor somehow keep moving when changing workspace
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
GNOME 49
WezTerm version
20251025-070338-b6e75fd7
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
The cursor keep moving to the direction of workspace change.
https://github.com/user-attachments/assets/2862421e-d135-4445-b6b4-ecaec7b9dcc0
To Reproduce
- Open wezterm
- Move to another workspace using Ctrl+Alt+Arrow Left/Right
- Go back to the workspace where wezterm reside (example : pressing Ctrl+Alt+Right)
- The cursor move to the right just like in the example
Configuration
local wezterm = require("wezterm")
local utils = require("utils")
local keybinds = require("keybinds")
local scheme = wezterm.get_builtin_color_schemes()["nord"]
local gpus = wezterm.gui.enumerate_gpus()
local stream_size = 14
local normal_size = 10
-- require("hack")
local function enable_wayland_check()
local wayland = os.getenv("XDG_SESSION_TYPE")
if wayland == "wayland" then
return true
end
return false
end
local xcursor_size = nil
local xcursor_theme = nil
-- local success, stdout, stderr =
-- wezterm.run_child_process({ "gsettings", "get", "org.gnome.desktop.interface", "cursor-theme" })
-- if success then
-- xcursor_theme = stdout:gsub("'(.+)'\n", "%1")
-- end
--
-- local success, stdout, stderr =
-- wezterm.run_child_process({ "gsettings", "get", "org.gnome.desktop.interface", "cursor-size" })
-- if success then
-- xcursor_size = tonumber(stdout)
-- end
local config = {
font = wezterm.font_with_fallback({ "FiraCode Nerd Font Mono", "Agave Nerd Font Mono" }),
font_size = normal_size,
window_decorations = "NONE",
enable_wayland = false,
-- tab_bar_at_bottom = true,
integrated_title_button_style = "Gnome",
default_cursor_style = "SteadyBar",
use_fancy_tab_bar = false,
color_scheme = "nordfox",
window_background_opacity = 0.95,
initial_cols = 120,
initial_rows = 40,
warn_about_missing_glyphs = false,
xcursor_theme = xcursor_theme,
xcursor_size = xcursor_size,
leader = keybinds.leader,
keys = keybinds.keys,
}
if enable_wayland_check() then
config.tab_bar_at_bottom = true
end
return config
Expected Behavior
Cursor does not move if there is no input.
Logs
No response
Anything else?
No response
Hello! Can you still reproduce this issue with the default config? Run with wezterm -n
It does not happen without any config file
In this case, try to reproduce this issue with a MINIMAL config. To do that, only add one-by-one some configs that might be related to this issue (I'd say the configs about keys / mouse bindings, maybe others)
This is also happening to me, it happens on any Electron app