sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
14.31k stars 330 forks source link

Scale is messed up if yazi is resized when it is in another workspace. #1158

Closed hakan-demirli closed 2 months ago

hakan-demirli commented 2 months ago

What system are you running Yazi on?

Linux Wayland

What terminal are you running Yazi in?

kitty 0.35.1

Did you try the latest code to see if this problem got fixed?

Not tried, because only commit referencing resize is in Jan 6 and the latest release is in April.

yazi --debug output

```sh ❯ yazi --debug Yazi Version: 0.2.5 (VERGEN_IDEMPOTENT_OUTPUT 1980-01-01) OS: linux-x86_64 (unix) Debug: false Emulator Emulator.via_env: ("xterm-kitty", "tmux") Emulator.via_csi: Ok(Unknown([])) Emulator.detect: Kitty Adaptor Adaptor.matches: Kitty Desktop XDG_SESSION_TYPE: Some("wayland") WAYLAND_DISPLAY: Some("wayland-1") DISPLAY: Some(":1") SSH shared.in_ssh_connection: false WSL /proc/sys/fs/binfmt_misc/WSLInterop: false Variables SHELL: Some("/run/current-system/sw/bin/bash") EDITOR: Some("hx") ZELLIJ_SESSION_NAME: None YAZI_FILE_ONE: None YAZI_CONFIG_HOME: None file(1) Version: Ok(Output { status: ExitStatus(unix_wait_status(0)), stdout: "file-5.45\nmagic file from /nix/store/cz28fainhxq78r4l4wgr140izc9hxsxp-file-5.45/share/misc/magic\n", stderr: "" }) Text Opener default: Some(Opener { run: "$EDITOR \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) block: Some(Opener { run: "$EDITOR \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) tmux TMUX: true Ueberzug++ Version: Err(Os { code: 2, kind: NotFound, message: "No such file or directory" }) -------------------------------------------------- ```

Describe the bug

Expected/Normal GUI. image

Broken/Messed up GUI. (I had to take a photo using my phone since pressing prtscrn fixes the issue. image

Expected Behavior

No distortion or wrong scale/zoom.

To Reproduce

In Hyprland WM using Kitty terminal:

Configuration

No response

Anything else?

This bug does not effect me. I also don't care if it is fixed or not. I just wanted to document a weird behavior I have encountered. This does not happen in lf file manager. So, I thought it is a yazi bug. Feel free to close as won't fix if this is too minor to be called a bug or can't reproduce.

sxyazi commented 2 months ago

I'm not quite sure what you mean - could you record a GIF and show me what's happening please?

hakan-demirli commented 2 months ago

Kooha-2024-06-16-13-39-30.webm

sxyazi commented 2 months ago

I see, but this doesn't seem like a bug in Yazi because I noticed that when the process is killed, the font in the terminal pane gets noticeably stretched but Yazi doesn't have the capability to control terminal fonts, so it looks more like a result of the VM and terminal combination.

Could you try the latest Yazi code? I've recently tuned some TUI rendering logic, but I'm not sure if it's related to this issue. Out of curiosity, could you also provide a GIF of lf to show me the differences between the two and check if this issue occurs in other terminals (like Alacritty)?

hakan-demirli commented 2 months ago

Yea, It is a kitty specific issue.

github-actions[bot] commented 1 month ago

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.