wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.78k stars 751 forks source link

wezterm size changes when opening other app #4568

Open Naadiyaar opened 10 months ago

Naadiyaar commented 10 months ago

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

Linux Wayland

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

GNOME Mutter 44.6

WezTerm version

20231107-082518-f0e3eecb

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 full screen, and opening(focusing) other programs, wezterm loses position and size. Screencast from 2023-11-12 17-46-54.webm

To Reproduce

open wezterm make it full-screen or half screen focus on other program

Configuration

THIS IS FULL CONFIG

local cfg = {
    window_close_confirmation = "NeverPrompt",
    check_for_updates = false,

    -- Avoid unexpected config breakage
    automatically_reload_config = false,

    exit_behavior = "Close",

    -- Disable all noises
    audible_bell = "Disabled",

    -- remove terminal top bar
    window_decorations = "NONE",

    -- setup color theme
    color_scheme = "Solarized Light (Gogh)",
}
cfg.hide_tab_bar_if_only_one_tab = true

cfg.window_padding = {
    left = 3,
    right = 3,
    top = 3,
    bottom = 3,
}

cfg.inactive_pane_hsb = {
    saturation = 0.9,
    brightness = 0.6,
}

-- set cursor shape to a Blinking Bar
cfg.default_cursor_style = "BlinkingBar"
cfg.animation_fps = 1
cfg.cursor_blink_ease_in = "Constant"
cfg.cursor_blink_ease_out = "Constant"

return cfg

plus some things about font

Expected Behavior

Secondary program gain focus while wezterm keeps its shape

Logs

No response

Anything else?

It's not happening with no configuration

Naadiyaar commented 10 months ago

If it helps to solve the problem, also moving the terminal window to another workspace fixes the problem. Like opening the terminal make it full screen move it to another workspace

Naadiyaar commented 10 months ago

issue solved by removing window_decorations = "NONE" but re-enabling it bring the problem back any idea what's causing this?

jokeyrhyme commented 10 months ago

I'm on Arch Linux, GNOME 45.1 (wayland), wezterm 20230712-072601-f4abf8fd and I can't reproduce this, so I wonder if this has been fixed on the GNOME side? Are you able to boot GNOME OS or some other live USB with a newer GNOME to check?

Naadiyaar commented 10 months ago

currently i'm using a fresh install Fedora 39 with GNOME 45.1 and this behavior is easily reproducible on flatpak version and RPM nightly by adding window_decorations = "NONE" to config. so no it's not fixed here

Naadiyaar commented 10 months ago

(potentially) more discussion here https://discussion.fedoraproject.org/t/wezterm-miss-behavieor-when-setting-window-decoration/97115

sgob1 commented 8 months ago

I was able to reproduce the bug on Fedora 39, latest GNOME and latest WezTerm from flathub.

Replacing window_decorations = "NONE" with window_decorations = "RESIZE" was a workaround for me.

aliaksandr-trush commented 1 month ago

Should be fixed by #5897