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

thin line when opacity and shadow enabled #5158

Open
Faetu opened this issue Mar 13, 2024 · 2 comments
Open

thin line when opacity and shadow enabled #5158

Faetu opened this issue Mar 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Faetu
Copy link

Faetu commented Mar 13, 2024

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

20240203-110809-5046fc22

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 using opacity < 1.0 with "MACOS_FORCE_ENABLE_SHADOW" flag, there is a black thin frame:
image
This goes around the whole window.

To Reproduce

Set opacity below 1.0 and add the "MACOS_FORCE_ENABLE_SHADOW" decoration flag.

Configuration

-- Pull in the wezterm API
local wezterm = require("wezterm")

local config = wezterm.config_builder()

config.color_scheme = "Catppuccin Mocha"
config.front_end = "OpenGL"
config.bold_brightens_ansi_colors = true
config.hide_tab_bar_if_only_one_tab = true
config.tab_bar_at_bottom = true
config.default_prog = { "/opt/homebrew/bin/fish", "-l" }
config.window_decorations = "NONE | MACOS_FORCE_ENABLE_SHADOW"
config.window_background_opacity = 0.8
config.macos_window_background_blur = 90
config.max_fps = 120
config.use_fancy_tab_bar = false
config.notification_handling = "AlwaysShow"
config.animation_fps = 60
config.initial_rows = 45
config.initial_cols = 175
config.send_composed_key_when_left_alt_is_pressed = true
config.native_macos_fullscreen_mode = true
config.keys = {
	{
		key = "d",
		mods = "SUPER|SHIFT",
		action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
	},
	-- Send "CTRL-A" to the terminal when pressing CTRL-A, CTRL-A
	{
		key = "d",
		mods = "SUPER",
		action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }),
	},
	{
		key = "f",
		mods = "SUPER|CTRL",
		action = wezterm.action.ToggleFullScreen,
	},
	{
		key = "LeftArrow",
		mods = "SUPER|OPT",
		action = wezterm.action.AdjustPaneSize({ "Left", 5 }),
	},
	{
		key = "RightArrow",
		mods = "SUPER|OPT",
		action = wezterm.action.AdjustPaneSize({ "Right", 5 }),
	},
	{
		key = "UpArrow",
		mods = "SUPER|OPT",
		action = wezterm.action.AdjustPaneSize({ "Up", 5 }),
	},
	{
		key = "DownArrow",
		mods = "SUPER|OPT",
		action = wezterm.action.AdjustPaneSize({ "Down", 5 }),
	},
	{
		key = "LeftArrow",
		mods = "SUPER|CTRL",
		action = wezterm.action.ActivatePaneDirection("Left"),
	},
	{
		key = "RightArrow",
		mods = "SUPER|CTRL",
		action = wezterm.action.ActivatePaneDirection("Right"),
	},
	{
		key = "UpArrow",
		mods = "SUPER|CTRL",
		action = wezterm.action.ActivatePaneDirection("Up"),
	},
	{
		key = "DownArrow",
		mods = "SUPER|CTRL",
		action = wezterm.action.ActivatePaneDirection("Down"),
	},
}

return config

Expected Behavior

Expected was, not to have this thin line around the window.

Logs

Log is empty

Anything else?

No response

@Faetu Faetu added the bug Something isn't working label Mar 13, 2024
@Faetu
Copy link
Author

Faetu commented Mar 14, 2024

I'm sry, I forgot to update the version to the nightly version I tried.
20240226-174525-22424c32

@RVZO6
Copy link

RVZO6 commented Aug 31, 2024

Experiencing similar behaviour

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

2 participants