gnome-shell/js
Sebastian Keller ef5b92c596 windowPreview: Ensure scaling is limited to defined size increase
The preview was getting scaled up by a factor based on what is needed to
increase the width by activeExtraSize pixels. With windows that are
wider than than they are tall, this means that the size of the window
will not increase any more than activeExtraSize in any direction, but
for windows that are taller than they are wide, the vertical scaling
can exceed this. This would break some of the assumptions in the
reported size for the preview chrome and could for very narrow windows
result in a rather large scale.

To fix this, calculate the scaling factor based on whatever is larger,
the height or the width.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1707>
2021-02-24 09:58:31 +00:00
..
dbusServices dbusServices/screencast: Use GTK4 2021-01-25 21:09:22 +01:00
gdm gdm: Override any other lower-priority service message on error 2021-02-16 18:00:10 +00:00
misc history: Trim input and ignore if empty 2021-02-13 08:58:20 +00:00
perf
portalHelper
ui windowPreview: Ensure scaling is limited to defined size increase 2021-02-24 09:58:31 +00:00
js-resources.gresource.xml Rename ViewSelector to SearchController 2021-02-11 21:14:36 +00:00
meson.build
portal-resources.gresource.xml