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

Wezterm creates crazy large window on Wayland in Fedora 40 #5360

Open
nbenitez opened this issue May 1, 2024 · 7 comments
Open

Wezterm creates crazy large window on Wayland in Fedora 40 #5360

nbenitez opened this issue May 1, 2024 · 7 comments
Labels
bug Something isn't working Wayland

Comments

@nbenitez
Copy link
Contributor

nbenitez commented May 1, 2024

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

Linux Wayland

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

Mutter: default in Fedora 40

WezTerm version

wezterm 20240429_102818_0184e88e (Using Copr repo)

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 just installed Fedora 40, installed Wezterm from Copr repo so it must be latest version, and when launching Wezterm it displays a very large window (goes further off-screen) and within it the terminal window only occupies a quarter of it, please check out the screenshots I attached below.

My display configuration, which wezterm correctly reports in wezterm.gui.screens(), (attached below) is, an external HiDPI monitor 3840x2160 at scale 2 connected to my laptop, the laptop screen is always off (set as inactive in Gnome display settings), so it's correct that it does not appear in wezterm.gui.screens() output.

To Reproduce

Just launch Wezterm from desktop file or from a terminal i.e. wezterm start --cwd . on a Fedora 40 Wayland session.

Configuration

-- I think the Bug is not affected by a specific configuration, but nonetheless I'm pasting mine below:
config.window_decorations = "RESIZE"
config.enable_wayland = true;
config.enable_tab_bar = false
config.scrollback_lines = 10000 -- default is 3500
config.hide_mouse_cursor_when_typing = false
config.pane_focus_follows_mouse = true
config.check_for_updates = false
config.font_size = 10.0
config.adjust_window_size_when_changing_font_size = false
-- no ligatures
config.harfbuzz_features = {"calt=0", "clig=0", "liga=0"}

Expected Behavior

The terminal window (i.e. black terminals as shown in the screenshot) should occupy all the window not just a quarter of it, and the window itself should have a normal size, not a width that goes far far right off-screen.

I think my setup it's pretty normal on Linux i.e. latest Fedora in a laptop connected to an external monitor.

Logs

Debug Overlay
wezterm version: 20240429_102818_0184e88e x86_64-unknown-linux-gnu
Window Environment: Wayland
Lua Version: Lua 5.4
OpenGL: Mesa Intel(R) HD Graphics 530 (SKL GT2) 4.6 (Compatibility Profile) Mesa 24.0.5
Enter lua statements or expressions and hit Enter.
Press ESC or CTRL-D to exit
> wezterm.gui.screens()
{
"active": {
"effective_dpi": 192,
"height": 2160,
"name": "DP-2",
"scale": 2,
"width": 3840,
"x": 0,
"y": 0,
},
"by_name": {
"DP-2": {
"effective_dpi": 192,
"height": 2160,
"name": "DP-2",
"scale": 2,
"width": 3840,
"x": 0,
"y": 0,
},
},
"main": {
"effective_dpi": 192,
"height": 2160,
"name": "DP-2",
"scale": 2,
"width": 3840,
"x": 0,
"y": 0,
},
"origin_x": 0,
"origin_y": 0,
"virtual_height": 2160,
"virtual_width": 3840,
}

Anything else?

Wezterm buggy appearance in Mutter wayland Fedora 40

Wezterm buggy appearance in Mutter Overview wayland Fedora 40

@nbenitez nbenitez added the bug Something isn't working label May 1, 2024
@osandov
Copy link
Contributor

osandov commented May 2, 2024

I'm seeing this, too. Removing window_decorations = 'RESIZE' from my config seems to have fixed it, although I am still getting a bunch of ERROR window::os::wayland::window > set_cursor: Cursor not found log lines that weren't there before Fedora 40.

@nbenitez
Copy link
Contributor Author

nbenitez commented May 3, 2024

I confirm it seems related to window_decorations = 'RESIZE'.

More oddities, if I remove window_decorations="RESIZE" then window:gui_window():maximize() on gui-startup event is not obeyed.

Definitively the combinations of window_decorations options with maximize() need be tested with latest Wayland on latest GNOME/Fedora.

@wez
Copy link
Owner

wez commented May 5, 2024

Please try the most recent nightly build

@wez wez added the waiting-on-op Waiting for more information from the original poster label May 5, 2024
@nbenitez
Copy link
Contributor Author

nbenitez commented May 5, 2024

I just did, unfortunately the bug is still there.

@github-actions github-actions bot removed the waiting-on-op Waiting for more information from the original poster label May 5, 2024
@osandov
Copy link
Contributor

osandov commented May 6, 2024

I built the main branch from source and still have the bug on my scaled laptop display, too.

@RomanAverin
Copy link

Visually nothing has changed except for the panic.

@abhinavgaba
Copy link

I have the same issue with the latest build (wezterm 20240520_084532_da2d0ad2) on Fedora 40 + gnome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Wayland
Projects
None yet
Development

No branches or pull requests

5 participants