Wrong window size after rotating with --scale-down
Hello, First of all I'd like to thank you for this greaaat software, and apologize for my poooor english... Here is how to reproduce the problem :
- take a screenshot ;
- load it with feh : the feh window is maximized, yet it does not exceed the screen size, and the screenshot is zoomed down to fit inside the window ; so far, so good ;
- rotate the image to the right : the height of the feh window now exceeds the screen height ;
- rotate he image to the right once again : the width of the feh window now also exceeds the screen width.
If I then manually resize the feh window to fit my screen size, then I can zoom and rotate the image without it ever exceeding my screen size... Shouldn't it be the default behaviour ? I'm using feh 3.3-2 under Arch Linux, with openbox as a window manager, and a polybar that slightly reduces my available screen space (don't know if it's of any interest...) Thanx in advance for any help !
OK, I've edited the title of this issue after investigating a little further.
First of all, the issue was missing an important note : in order to reproduce the bug, the image file has to be opened with the --scale-down option.
Furthermore, the issue seems to be produced by feh not taking the window borders into account when rotating, that's why (I suppose) it then exceeds the window size.
Hope this helps, Best regards !
I wanted to solve this bug, so I've kept investigating.
The "known bugs" section of the man page says:
--scale-down does not take window decorations into account and may therefore make the window slightly too large.
But it doesn't seem to be the problem here: am I right to infere that if it was a problem related to the window decorations, then the --borderless option should prevent it? But in fact, it doesn't.
Furthermore, it seems that the --scale-down option works correctly for the first image of the list, but not for the other ones.
Steps to reproduce:
- Open a folder containing large images (larger than the screen) with
feh --scale-down --borderless(--borderlessis optional, since it doesn't solve the problem here; it's just useful to show that the window decorations don't seem to be the origin of the bug). - An image is displayed; it doesn't exceed the screen size; you can scroll with the arrow keys.
- Hit
nto display the next large image; instead of being scaled down, it's displayed with a 1.00 zoom factor, so it exceeds the screen size, and you can't scroll it anymore (hittingnorpagain confirms the problem).
So it seems that the --scale-down option is simply not triggered anymore when you navigate through the image list (or when you rotate an image)... Maybe a call is missing? Would there be a way to solve this?
Thanx in advance for any help!