Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title Bar is missing if config.enable_wayland = true #6296

Open
sandikata opened this issue Oct 19, 2024 · 0 comments
Open

Title Bar is missing if config.enable_wayland = true #6296

sandikata opened this issue Oct 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sandikata
Copy link

What Operating System(s) are you seeing this problem on?

Linux Wayland

Which Wayland compositor or X11 Window manager(s) are you using?

Mutter

WezTerm version

wezterm 20241015-083151-9ddca7bd

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

If config.enable_wayland = true titlebar is missing at all, and terminal window can't be moved or resized at all.

To Reproduce

Install git version, enable wayland (it is enabled by default)

Start wezterm

Configuration

-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This table will hold the configuration.
local config = {}

-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end

-- terminfo
-- config.term = "wezterm"

-- Renderer
config.enable_wayland = false
config.front_end = "WebGpu" -- default OpenGL
-- config.max_fps = 165
config.window_background_opacity = 0.98

-- This is where you actually apply your config choices
-- For example, changing the color scheme:
--config.color_scheme = 'Spacemacs (base16)'
-- config.color_scheme = 'Andromeda'
config.color_scheme = 'Relaxed'

-- fonts configuration
config.font = wezterm.font_with_fallback {
-- { family = 'JetBrainsMono', weight = 'Light', scale = 1.15 }, -- line_height = 1.1
{ family = 'Dank Mono', weight = 'Regular', scale = 1.3 }, -- line_height = 1.1
-- { family = 'Fira Code', weight = 'Regular', scale = 1.1 }, -- line_height = 1.1
-- { family = 'Hasklig', weight = 'Regular', scale = 1.2 }, -- line_height = 1.1
-- { family = 'Iosevka Term', weight = 'Regular', scale = 1.20, stretch = 'Expanded', }, -- line_height = 1.05
-- { family = 'Victor Mono', weight = 'Regular', scale = 1.20 }, -- line_height = 1.1
{ family = 'Cascadia Code', weight = 'Light', scale = 1.20 }, -- line_height = 1.1
-- { family = 'Agave', weight = 'Regular', scale = 1.20 },
-- { family = 'Noto Sans Mono', weight = 'Regular', scale = 1.1 }, -- line_height = 1.1
-- { family = 'Andika', weight = 'Regular', scale = 1.2 }, -- line_height = 1.1
-- { family = 'Ubuntu Mono', weight = 'Regular', scale = 1.25 }, -- line_height = 1.1
'Noto Color Emoji',
}

config.font_size = 12.0
config.line_height = 1.1
config.cell_width = 1.0
config.freetype_load_target = "Light" -- HorizontalLcd
config.font_rasterizer = "FreeType"
config.freetype_load_flags = "FORCE_AUTOHINT" -- FORCE_AUTOHINT
-- config.freetype_render_target = "HorizontalLcd"

-- terminal settings

-- Window frame
config.window_frame = {
-- The font used in the tab bar.
-- Roboto Bold is the default; this font is bundled
-- with wezterm.
-- Whatever font is selected here, it will have the
-- main font setting appended to it to pick up any
-- fallback fonts you may have used there.
font = wezterm.font { family = 'Roboto', weight = 'Bold' },

-- The size of the font in the tab bar.
-- Default to 10. on Windows but 12.0 on other systems
font_size = 12.0,

-- The overall background color of the tab bar when
-- the window is focused
active_titlebar_bg = '#333333',

-- The overall background color of the tab bar when
-- the window is not focused
inactive_titlebar_bg = '#333333',
}

config.colors = {
tab_bar = {
-- The color of the inactive tab bar edge/divider
inactive_tab_edge = '#575757',
},
}

config.inactive_pane_hsb = {
saturation = 0.9,
brightness = 0.8,
}

-- scrollback and scrollbar
config.scrollback_lines = 100000
config.enable_scroll_bar = true
config.use_fancy_tab_bar = true
config.tab_bar_at_bottom = true

-- Mouse cursor
config.default_cursor_style = 'BlinkingBar'
config.animation_fps = 10
config.cursor_blink_rate = 1000
config.cursor_blink_ease_in = 'Linear'
config.cursor_blink_ease_out = 'Linear'
-- cursor_bg = '#52ad70'
-- cursor_fg = 'black'
-- cursor_border = '#52ad70'
config.hide_mouse_cursor_when_typing = false
config.xcursor_theme = "buuf-cursor-original"

-- Visual Bell Screen Blink
config.visual_bell = {
fade_in_function = 'EaseIn',
fade_in_duration_ms = 150,
fade_out_function = 'EaseOut',
fade_out_duration_ms = 150,
}
config.colors = {
visual_bell = '#202020'
}

-- Split vertical current pane
config.keys = {
-- This will create a new split and run your default program inside it
{
key = '"',
mods = 'CTRL|SHIFT|ALT',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
}

-- Split horizontal current pane
config.keys = {
-- This will create a new split and run your default program inside it
{
key = '%',
mods = 'CTRL|SHIFT|ALT',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
}

-- Zoom pane
config.keys = {
{
key = 'Z',
mods = 'CTRL|SHIFT',
action = wezterm.action.TogglePaneZoomState,
},
}

-- Zoom out pane to default size
config.keys = {
{
key = '0',
mods = 'CTRL',
action = wezterm.action.ResetFontAndWindowSize,
},
}
-- and finally, return the configuration to wezterm
return config

Expected Behavior

Title Bar to be visible, terminal window to be resizable, movable, maximize and minimize

Logs

No response

Anything else?

No response

@sandikata sandikata added the bug Something isn't working label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant