examples: wezterm: Use Xwayland.

This commit is contained in:
Hilton Chain 2026-02-14 14:51:56 +08:00
parent efefd3ba1a
commit 7da3af1adf
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -1,12 +1,8 @@
-- Keep WezTerm maximized so that the installer won't be resized.
-- https://wezterm.org/config/lua/gui-events/gui-startup.html
local wezterm = require 'wezterm'
local mux = wezterm.mux
local config = {}
local config = wezterm.config_builder()
wezterm.on('gui-startup', function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
-- Use Xwayland in the LiveCD so that we can change keyboard layout when
-- WezTerm is running.
config.enable_wayland = false
return config