feh icon indicating copy to clipboard operation
feh copied to clipboard

feh --auto-zoom --scale-down inconsistent behavior for same command on i3?

Open khughitt opened this issue 4 years ago • 9 comments

Greetings!

I've noticed that feh does not always behave consistently when called from i3.

To Reproduce:

  1. Open a new workspace in i3
  2. Open a terminal and cd to a directory containing images.
  3. Call feh --auto-zoom --scale-down

Observed behavior:

About 80% of the time, the behavior is as expected and feh displays the first image, scaled to fit half the screen.

If I close the window and then recall the command a bunch of times, however, about 20-25% of the time, the image instead appears tiled in a 4x4 grid.

Any idea what could be causing this? It seems like sometimes the geometry estimation is occurs too soon perhaps. I'm wondering if compton could be affecting this? (e.g. due to lag ocurring during composition?)

Versions

  • i3-gaps-rounded-git (i3 version 4.16.1-184-g00181678)
  • Termite v15
  • Picom (compton) v7.5

khughitt avatar Nov 23 '19 17:11 khughitt

Same problem on dwm

klesh avatar Feb 25 '20 16:02 klesh

Can confirm it is happening on dwm, and it also happen when simply calling feh without any option.

The image gets tiled across the whole windows, the issue seems random, as running the same command multiple times will sometimes lead to a correct behaviour, without any identifiable pattern.

aearil avatar Feb 28 '20 05:02 aearil

I suspect it is caused by window resizing. Reloading image fixes the problem.

klesh avatar Feb 28 '20 15:02 klesh

Possibly related: #504

FichteFoll avatar Jul 04 '20 18:07 FichteFoll

I'm having this issue on bspwm, too.

notevenaperson avatar Aug 29 '20 22:08 notevenaperson

Same here on bspwm

zjeffer avatar Sep 02 '20 12:09 zjeffer

Seems that if you use --reload 0.1 in the command the image will fix itself, tested on BSPWM.

FrozenOrchestra avatar Apr 20 '21 10:04 FrozenOrchestra

It does "fix" it, but also causes a reload, making you unable to zoom, pan, resize or do anything since it will reload every 0.1s. It's not a feasible workaround.

Reverting the commit mentioned in #504 should probably do it.

FichteFoll avatar Apr 23 '21 21:04 FichteFoll

Can confirm that this is still an issue on the latest version of main when tested on dwm git revert 11eeb961f15219da506a050ffc432e052689dcd6 fixes the problem.

dorian-yeager avatar Apr 03 '22 17:04 dorian-yeager