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

Wrong size with Maximized Alacritty #2126

Open
kontsaki opened this issue Jan 31, 2023 · 11 comments
Open

Wrong size with Maximized Alacritty #2126

kontsaki opened this issue Jan 31, 2023 · 11 comments
Assignees

Comments

@kontsaki
Copy link

Hello,

With Alacritty config

shell:
  program: zellij
window:
  startup_mode: Maximized

Zellij starts in the wrong size

Screenshot from 2023-01-31 19-24-29

if I resize Alacritty then Zellij picks up the right size again

zellij 0.34.4
alacritty 0.11.0
Linux 6.0.12-76060006-generic #202212290932167413972522.04~ca93ccf SMP PREEMPT_DYNAMIC Thu J x86_64 x86_64 x86_64 GNU/Linux

@long2ice
Copy link

long2ice commented Feb 2, 2023

Same there.
image

@long2ice
Copy link

Current I have to use startup_mode: Fullscreen instead

@kontsaki
Copy link
Author

sometimes I'm getting a different behavior

image

@long2ice
Copy link

long2ice commented Mar 6, 2023

Hope this to be fix! Thanks!

@kontsaki
Copy link
Author

kontsaki commented Mar 7, 2023

solved on latest version, thank you <3

@kontsaki kontsaki closed this as completed Mar 7, 2023
@kontsaki
Copy link
Author

started happening again on zellij 0.35.2

@kontsaki kontsaki reopened this Mar 19, 2023
@LudoPinelli
Copy link

Same issue here (zellij 0.35.2). I tried with Alacritty, Kitty and Wezterm on Linux and Alacritty, Wezterm and Windows Terminal on wsl Windows.
However, on Linux, I switched from X11 to Wayland this morning and the problem disappeared. I don't have the expertise to know what it means, but I share the information in case it could help solving the issue.

@luccahuguet
Copy link

same here!

if I choose Fullscreen at least it works although not the desired behavior, which is maximized

@imsnif
Copy link
Member

imsnif commented Mar 31, 2023

Just for the record: I would really like to solve this bug, but for the life of me I cannot reproduce it. I believe all of you that this is happening, but must find a way to reproduce this in order to fix. I'm on X11 with i3.

@amokfa
Copy link

amokfa commented Apr 27, 2023

I created a launcher that adds a 10ms delay and it went away:

#!bash

sleep 0.01
zellij

wrmilling added a commit to wrmilling/dotfiles that referenced this issue Jun 5, 2023
@ngasull
Copy link

ngasull commented Aug 15, 2023

I can confirm the bug.

It seems to be some kind of race condition where zellij draws itself while the window manager is resizing the terminal window.

Found on

My linux plasma desktop, it's probably because of the tiling window manager polonium (~bismuth for wayland).

This linked issue ; it is also the case on i3wm.

Solution?

Could it be a good idea to check if the window size changed at the end of each redraw? (Or first draw?)

Considering which population is using zellij, it would probably be a good thing that tiling window managers don't interfere with zellij 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants