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

Intial window not working properly on Mac OS #6503

Open
AmaruCoder opened this issue Dec 20, 2024 · 0 comments
Open

Intial window not working properly on Mac OS #6503

AmaruCoder opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AmaruCoder
Copy link

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

I am trying to place the initial window on the bottom center of an external screen using:

wezterm.on("gui-startup", function(cmd)
    local screen = wezterm.gui.screens().main
    local ratio_w = 0.4
    local ratio_h = 0.3
    local width, height = screen.width * ratio_w, screen.height * ratio_h
    local tab, pane, window = wezterm.mux.spawn_window(cmd or {
		position = { x = (screen.width - width) / 2, y = (screen.height - height) },
    })
	window:gui_window():set_inner_size(width, height)
end)

The setting of width, height, and the x position work fine. However, the y always leaves a gap under the Wezterm window, even when I change the y position to an arbitrarily large number.

To Reproduce

Include the code in the .wezterm.lua config file.

Configuration

NA

Expected Behavior

To see no gap under the initial Wezterm window.

Logs

No response

Anything else?

NA

@AmaruCoder AmaruCoder added the bug Something isn't working label Dec 20, 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