debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #07876
[Bug 2124253] Re: Factory reset tools window exceeds display size at high display scale settings
Identify this is a gtk3 bug.
factory-reset-tools, along with other Flutter apps, uses gdk_monitor_get_workarea() and gdk_monitor_get_geometry() to judge if default app window size is larger than display.
https://github.com/canonical/ubuntu-desktop-provision/blob/fa6a8dff00901e22558b13ca7e77c23b3ff7981f/apps/factory_reset_tools/linux/my_application.cc#L21
gdk_monitor_get_workarea() and gdk_monitor_get_geometry() should return application pixel as per documentation, yet they return device pixel in wayland.
The fix landed in gtk 3.24.42. Noble uses 3.24.41
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6723
[Steps to reproduce without launching flutter app]
compile and run: https://git.launchpad.net/~snalvc/+git/cgtk3-test
under different integer scales. Width and height should be scaled accordingly
I patched and built gtk+3.0 here: https://launchpad.net/~snalvc/+archive/ubuntu/testppa
Verified with the above test program and confirm fixed.
However the Flutter apps packaged by snap seem to use libgtk3 somewhere else and the bug persists
** Also affects: gtk+3.0 (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
When the display scaling is set to a high value (e.g., 200% or greater),
the window for "Factory reset tools" is larger than the display itself.
This makes it difficult or impossible to access all of the window's
controls.
[Steps to Reproduce]
Open the system settings and go to the "Displays" section.
- Set the "Scale" to 200% or higher.
+ Set the "Scale" to 200% or higher. Disable fractional scaling
Launch the "Factory reset tools" application.
[Expected Results]
The "Factory reset tools" window should be fully visible on the screen,
regardless of the display scale setting. All buttons and options should
be accessible.
[Actual Results]
The window is too large for the screen, and some elements are cut off.
- For example, the buttons at the bottom of the window may not be visible
- or clickable.
+ The close app button at the top right corner is not visible or
+ clickable.
[Additional Information]
This issue has been verified on two different devices: a 10-inch tablet
and a laptop.
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to gtk+3.0 in Ubuntu.
https://bugs.launchpad.net/bugs/2124253
Title:
Factory reset tools window exceeds display size at high display scale
settings
Status in ubuntu-desktop-provision:
New
Status in gtk+3.0 package in Ubuntu:
New
Bug description:
When the display scaling is set to a high value (e.g., 200% or
greater), the window for "Factory reset tools" is larger than the
display itself. This makes it difficult or impossible to access all of
the window's controls.
[Steps to Reproduce]
Open the system settings and go to the "Displays" section.
Set the "Scale" to 200% or higher. Disable fractional scaling
Launch the "Factory reset tools" application.
[Expected Results]
The "Factory reset tools" window should be fully visible on the
screen, regardless of the display scale setting. All buttons and
options should be accessible.
[Actual Results]
The window is too large for the screen, and some elements are cut off.
The close app button at the top right corner is not visible or
clickable.
[Additional Information]
This issue has been verified on two different devices: a 10-inch
tablet and a laptop.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-desktop-provision/+bug/2124253/+subscriptions