Skip to content
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

[Bug]: App incorrectly remembers window dimensions when in a specific adaptive layout #901

Open
TriVoxel opened this issue Apr 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@TriVoxel
Copy link

TriVoxel commented Apr 12, 2024

Describe the bug

On desktop, when the app is resized to a mobile layout and then closed, it will re-open in the last-used window dimension. Same goes for the next adaptive size up. However, in the third adaptive state, it will not re-open in windowed mode, it will open fullscreen.

Steps To Reproduce

  1. Resize the window to where there is padding to the left and right of the posts on the Home feed
  2. Close the application
  3. Re-open the application

Logs and/or Screenshots

Will remember window size properly:
Screenshot from 2024-04-12 00-34-10

Will not remember window size properly:
Screenshot from 2024-04-12 00-34-17

Video demo:
Screencast from 2024-04-12 00-36-26.webm

Instance Backend

Mastodon

Operating System

Fedora Silverblue

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime)
prefix: /app
flatpak: true
version: 0.7.2 (production)
gtk: 4.14.1 (4.14.1)
libadwaita: 1.5.0 (1.5.0)
libsoup: 3.4.4 (3.4.4)
libgtksourceview: 5.12.0 (5.12.0)

Additional Context

I have an ultrawide monitor (21:9), so this issue is especially obvious to me.

@TriVoxel TriVoxel added the bug Something isn't working label Apr 12, 2024
@GeopJr
Copy link
Owner

GeopJr commented Apr 12, 2024

However, in the third adaptive state, it will not re-open in windowed mode, it will open fullscreen.

I'm pretty sure that's just a shell/mutter thing, though I'd love it if you could confirm. From my end, if I for example open Files, make the window really big, almost touching the edges of my screen - without maximizing it, close it and then re-open it, it will open maximized

For the sake of debugging, here's Tuba's log doing the same as above (which reproduced your issue):

Start is what Tuba set the window size, End is what Tuba saved, W is width, H is height, M is maximized

End: W737 H600 Mfalse
Start: W737 H600 Mfalse
End: W1868 H998 Mfalse
Start: W1868 H998 Mfalse

I closed the window at a small size, opened it and it was exactly as left. Tuba loaded and saved the dimensions correctly. Then I made it really big and closed it. Tuba saved it correctly. But upon opening it, it was maximized - even though Tuba set it to the values set prior.

@TriVoxel
Copy link
Author

@GeopJr Yeah, definitely a GNOME/Mutter thing. In hindsight, I think I've noticed this in other apps, making it kind of impractical to use windows well... windowed. I think GNOME hard-coded the window dimensions to where a certain width counts as re-opening maximized, but on an ultra-wide where I often have things with wider than average windows, it's just annoying lol. I'll open an issue there sometime...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants