-
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
Lose zoom when deactivated #188
Comments
This was a bug that I fixed some time ago. |
|
Relates to #188. Signed-off-by: Artem Senichev <[email protected]>
Maybe Hyprland resizes the window when focus is lost, which causes the scaling to reset. I can't reproduce it in Sway WM. |
I reinstalled swayimg with swayimg-git. And now it doesn't reset zoom when focus is lost, but it launches with non-fit scale |
Please, attach your config file for the swayimg.
|
I have this swayimgrc. |
It looks like there is some specific in Hyprland. |
Reverts commit b0426a3. Relates to #188. Signed-off-by: Artem Senichev <[email protected]>
I think I figured out what the problem was. |
Issue came back. The zoom is lost when I change the active window. |
I have this output: |
I removed this parameter because it doesn't work as intended. |
Is there an alternative to that? |
No. I don't know how to handle Hyprland's game with window resizing. |
|
It's not actually a bug, but Hyprland specific behaviour: window animation is based on resize, so it is not possible to determine when resize complete. |
the client should not see or care about that, though. The moment the animation starts, you get a resize event to the target size. From the client POV, there is no animations. |
This is how swayimg works. |
it shouldn't, that's why I asked for WAYLAND_DEBUG logs. Unless the user has some windowrule set for unfocused windows that would change their geometry, it shouldn't be re-sent |
I use Hyprland on Arch BTW. And when I change the active window, the swayimg loses the zoom value. Can I change this behavior using the config file, or is it a bug?
The text was updated successfully, but these errors were encountered: