Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Re-add automatic window resizing #184

Open
DarkDefender opened this issue Aug 25, 2019 · 4 comments
Open

Re-add automatic window resizing #184

DarkDefender opened this issue Aug 25, 2019 · 4 comments
Labels
Feature New feature request

Comments

@DarkDefender
Copy link
Contributor

Autoresize is mentioned in the man (5) page, but not implemented yet.

I think this would be a nice to have as sometime you want to keep the current zoom/position when changing images.

@eXeC64
Copy link
Owner

eXeC64 commented Aug 25, 2019

This is something I clumsily took out during the raw X11/Wayland refactor as I felt far too lazy to implement proper window resizing with staying centred vs top-left-corner being fixed, etc.

It's only useful when imv is floating, and since its target audience is tiling window manager users, this hasn't been a priority. This can go back in, but it probably won't happen in 4.0 or 4.1.

@eXeC64 eXeC64 added the Feature New feature request label Aug 25, 2019
@eXeC64 eXeC64 changed the title autoresize is mentioned in the man page for options, but not implemented. Re-add automatic window resizing Aug 25, 2019
@eXeC64
Copy link
Owner

eXeC64 commented Aug 25, 2019

I'm removing it from the man page for now to prevent confusion: ecc58e5

@DarkDefender
Copy link
Contributor Author

Aha, I thought this was for allowing the user to keep the x,y position and/or zoom level between image changes.

So if I had a zoom of 115%, and the x and y viewport position with some arbitrary value, they would not be reset. So if you are looking at a sequence of images, the viewport would not recenter or rescale on image change.

@DarkDefender
Copy link
Contributor Author

Perhaps that behavior could be added as new modes for scaling and initial_pan? So:
scaling = preserve so something... 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants