Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Bug]: Window shrinks when un-maximized under X11 with fractional scaling

Open henryrov opened this issue 2 years ago • 4 comments

Describe the bug

In an X11 session with fractional scaling, each time you maximize and un-maximize the main window, its width decreases slightly (until it can't anymore at 360 px).

Steps To Reproduce

  1. Start an X11 session
  2. Set display scaling to any value that isn't a multiple of 100%
  3. Open app
  4. Resize main window to any width above the minimum
  5. Maximize
  6. Un-maximize

Instance Backend

Mastodon

Operating System

Pop!_OS 22.04

Package

Flatpak

henryrov avatar Oct 08 '23 17:10 henryrov

Can't reproduce, please give me your troubleshooting information

GeopJr avatar Oct 08 '23 18:10 GeopJr

I don't really have too much more troubleshooting information on this. From further testing, I did find that this only happens with fractional scaling enabled under X11, which generally seems to cause a lot of issues with many apps. In any case, I'll update this issue to reflect this.

henryrov avatar Oct 08 '23 18:10 henryrov

Does it happen with other GTK4 apps? (specifically with the latest runtime)

We don't really do anything when maximized toggles on Tuba. If it happens to other apps as well, it might be worth reporting upstream but honestly I'm not sure to which project.

Some vaguely similar issues:

  • https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1603
  • https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/44#note_431241
  • https://gitlab.gnome.org/GNOME/mutter/-/issues/1122
  • https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1884754

GeopJr avatar Oct 08 '23 19:10 GeopJr

Not with any other apps on my system, including current flatpaks for Gnome Weather, Calendar and Contacts. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1603 looks very similar to what I'm seeing, but I don't have the issue with Nautilus (though I am running the older version that is included with Pop OS). Definitely could be an upstream issue though.

henryrov avatar Oct 08 '23 19:10 henryrov