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 size changes when opening other app #4568

Open
Naadiyaar opened this issue Nov 12, 2023 · 7 comments
Open

wezterm size changes when opening other app #4568

Naadiyaar opened this issue Nov 12, 2023 · 7 comments
Labels
bug Something isn't working Wayland

Comments

@Naadiyaar
Copy link

Naadiyaar commented Nov 12, 2023

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 Naadiyaar added the bug Something isn't working label Nov 12, 2023
@Naadiyaar
Copy link
Author

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
Copy link
Author

Naadiyaar commented Nov 23, 2023

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

@jokeyrhyme
Copy link
Contributor

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
Copy link
Author

Naadiyaar commented Nov 25, 2023

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
Copy link
Author

@sgob1
Copy link

sgob1 commented Jan 12, 2024

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.

@wez wez added the Wayland label Jan 21, 2024
@aliaksandr-trush
Copy link

Should be fixed by #5897

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