-
Notifications
You must be signed in to change notification settings - Fork 31
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 scaling and position of previews in ranger (in both sway and hyprland) #122
Comments
same problem here with ncspot and ranger (hyprland) also with a 4k scale screen in 1.5 |
hey, sorry for the delay. I gave it a go recently but can't find the culprit. I'd suggest using sixel or kitty as those seem to work fine. |
hey, I think that's an issue with ytfzf and your fzf setup. Since gnome wayland isn't supported it must be using sixel and that works fine |
Same problem with alacritty, sway, and 4k at 1.5 scale |
Same issue on Alacritty, Hyprland, Nvidia, with a 4k monitor under a 2 scale factor and a 2k Monitor under a 1.25 scale factor. I managed to work around it by hard-coding a scale down on the coordinate and size in Ranger's image display code. See I verified it works in all trivial cases. Although in some corner cases, the rendered image location/depth could be incorrect, such as when you create a new other window the changes the terminal size or switch focus from the terminal to other windows whose Z axis is on top the terminal. Verified cases:
BTW I originally found this issue from the issues in |
Update: I manged to work around it in Yazi as well sxyazi/yazi#207 (comment). The patch I had applied to Yazi was different to Ranger, where I didn't downscale the size for the former. |
Ignore my previous comment. A proper fix is in master, only working in sway for now, please do test. Edit: only working with opencv due to a libvips bug. |
scaling is fixed for libvips too now on master, closing |
I have a 2K screen and I am using a scaling factor of 1.35 with both sway and hyprland. This results in an issue similar to the one reported in #113. It does not happen with a scaling factor of 1.
Here is my log:
The text was updated successfully, but these errors were encountered: