hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
319 stars 55 forks source link

F11 on maximized window deactivates maximization #93

Closed riveravaldez closed 3 years ago

riveravaldez commented 3 years ago

Hi, not sure if a bug or a feature (assuming the first).

When Viewnior's window is maximized it keeps that way, even after Q/Esc closing. It reopens maximized. But if you press F11 to go full-screen afterwards the maximization gets lost.

I'm on updated Debian testing, with IceWM:

$ dpkg -l viewnior 
||/ Nombre         Versión      Arquitectura Descripción
+++-==============-============-============-=====================================
ii  viewnior       1.6-1+b2     amd64        simple, fast and elegant image viewer

I'm assuming the desired behavior would be that the window keeps maximized after exiting full-screen (whereas pressing F11 again or Esc), but if that's not the idea this should be closed ASAP. ;)

Best regards and thanks a lot, Viewnior is my image-viewer of choice for a decade now.

biopsin commented 3 years ago

What is set in Preference -> General -> Open new image in: ? Mine is set to "Fit to window mode" and when closing and opening a new window it scales the window to the image size regardless how I exit viewnior. Might be a spesific IceWM quirk.

riveravaldez commented 3 years ago

What is set in Preference -> General -> Open new image in: ?

"Smart mode" (in fact, in Spanish, "Modo inteligente").

Mine is set to "Fit to window mode" and when closing and opening a new window it scales the window to the image size regardless how I exit viewnior.

Well, the behavior was similar, no matter the different open-new-image mode. Do you still have the issue?

Might be a spesific IceWM quirk.

Are you using also IceWM? Could had been, because right now seems to be working properly (and maybe there were a couple of updates in between).

Thanks a lot for the answer, I'll close this (and hope that was it) if you inform that the issue is no longer present in your case.

Best regards!

hellosiyan commented 3 years ago

Hi @riveravaldez! Thank you for the kind words.

Upon existing fullscreen mode, the window manager is responsible for placing the window back in the same position, size and mode (maximized or not). Since you say it seems to be working, I will go ahead and close this issue.

riveravaldez commented 3 years ago

Thanks a lot for the explanations, @hellosiyan, and also for your beautiful work with Viewnior. Right now I'm using it with Fluxbox and its working perfectly. Kind regards!