wez / wezterm

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

Window goes out of fullscreen when focus shifts #2536

Open tareqsiraj opened 2 years ago

tareqsiraj commented 2 years ago

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

20220905-102802-7d4b8249

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

With all window decorations (i.e. title bar) disabled, when a fullscreen window looses focus, it shrinks to about a quarter of the screen size.

To Reproduce

  1. Launch wezterm with the provided configuration
  2. Make the window full screen
  3. Switch focus to a different window
  4. Switch back to the wezterm window

Configuration

return { enable_tab_bar = false, window_decorations = "NONE", enable_wayland = true, }

Expected Behavior

Wezterm window remains full-screen.

Logs

No response

Anything else?

Screencast from 09-20-2022 09:25:35 PM.webm

wez commented 2 years ago

How are you making the window full-screen? Using a function in mutter or using ToggleFullScreen, or something else?

tareqsiraj commented 2 years ago

I'm using the Gnome built-in CMD+Up to make it fullscreen. Not sure if its a Gnome or Mutter feature.

tareqsiraj commented 2 years ago

Just an update, it seems that screen updates can cause this while the wezeterm is in focus. I use the following with neovim to highlight the yanked text for a tiny bit and then the highlight disappears, it looks like this causes a foreground wezterm window to resize like I mentioned.

au TextYankPost * silent! lua vim.highlight.on_yank {higroup="IncSearch", timeout=250}
cnrrobertson commented 2 years ago

I'd like to add that this behavior only occurs when I set window_decorations = "NONE". Default window decorations fixes the issue. Hope that helps to narrow it down.

Using a function in mutter or using ToggleFullScreen, or something else?

And it occurs for either Gnome full screen command or ToggleFullScreen

414owen commented 1 year ago

I'm also seeing this behaviour

groner commented 1 year ago

I'm a new wezterm user and I ran into this right away, but it doesn't happen every time.

Switching virtual desktops and coming back seems to break the spell.

Ubuntu 22.10 w/ GNOME on wayland wezterm 20230408-112425-69ae8472 (appimage initially, then deb)

groner commented 1 year ago

I have this problem with the default window_decorations config.

groner commented 1 year ago

The issue seems to be better on Ubuntu 23.04, w/ GNOME 44.

This is on a different machine (notebook vs desktop), where I didn't try wezterm before upgrading from 22.10. So I can't be sure it isn't related to some other difference with this machine.

wez commented 1 month ago

Please try the latest nightly build