wezterm
wezterm copied to clipboard
Under macOS, `wezterm.gui.screens()` does not work
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20250504-063133-dd3caaae
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
When i called wezterm.gui.screens() in Lua script, WezTerm became unresponsive to any operations.
To Reproduce
Try to put this in ~/.config/wezterm/wezterm.lua.
local wezterm = require 'wezterm'
local screen_info wezterm.gui.screens()
Configuration
local wezterm = require 'wezterm'
local screen_info wezterm.gui.screens()
Expected Behavior
No response
Logs
WezTerm does not respond.
Anything else?
No response
I have the same issue on Linux (Fedora 42 and Debian 12) under Sway/Wayland.
Wezterm version is 20250604_060157_5106c8c1. Becomes completely unresponsive when calling wezterm.gui.screens() inside the config file. Calling it in the debug overlay is fine.