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

Restoring window resizes the window #72

Closed
MLFlexer opened this issue Nov 25, 2024 · 5 comments · Fixed by #87
Closed

Restoring window resizes the window #72

MLFlexer opened this issue Nov 25, 2024 · 5 comments · Fixed by #87
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@MLFlexer
Copy link
Owner

See this Reddit comment

@tdragon
Copy link

tdragon commented Jan 10, 2025

I have the same problem: when I restore a session in the same window, the window size changes a bit.
I use terminal on the left half on my screen and it is visible that after restoring it is smaller both vertically and horizontally by a few pixels.

It is probably related to "window_decorations = "RESIZE"," and custom window_padding I use.

@MLFlexer
Copy link
Owner Author

This might be related to #83

@MLFlexer
Copy link
Owner Author

MLFlexer commented Jan 23, 2025

I have the same problem: when I restore a session in the same window, the window size changes a bit. I use terminal on the left half on my screen and it is visible that after restoring it is smaller both vertically and horizontally by a few pixels.

It is probably related to "window_decorations = "RESIZE"," and custom window_padding I use.

Thanks for providing additional information about your config.
#83 Seems to be related and it suggest that this is a Wezterm bug.

One way to solve this is by passing an additional option which ignores the resize, so windows will restore, but not resize to their original size. Do you think this would be acceptable behaviour?

@tdragon
Copy link

tdragon commented Jan 23, 2025

@MLFlexer thanks. For now I enabled decorations and default padding and it seems to help - didn't notice the problem after that.
The option to ignore the resize would be good too.

@MLFlexer MLFlexer self-assigned this Jan 23, 2025
@MLFlexer MLFlexer added bug Something isn't working enhancement New feature or request labels Jan 23, 2025
@MLFlexer MLFlexer linked a pull request Jan 23, 2025 that will close this issue
@MLFlexer
Copy link
Owner Author

@MLFlexer thanks. For now I enabled decorations and default padding and it seems to help - didn't notice the problem after that. The option to ignore the resize would be good too.

I have added the restore option with #87

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

Successfully merging a pull request may close this issue.

2 participants