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
..
2021-02-11 13:48:54 +01:00
2021-02-04 20:08:29 +00:00
2020-02-17 23:20:40 +01:00
2020-12-02 15:10:29 +00:00
2020-06-30 13:42:18 +00:00
2021-02-16 13:56:20 +00:00
2020-05-02 00:16:28 +02:00
2020-10-21 03:29:18 +02:00
2021-01-29 21:56:05 +00:00
2019-11-11 19:25:14 +00:00
2021-02-03 20:19:29 +01:00
2020-07-29 18:09:53 +02:00
2020-08-21 21:40:22 +03:00
2020-03-29 12:56:33 +00:00
2020-03-23 15:27:47 +00:00
2019-11-11 19:25:14 +00:00
2021-02-11 22:31:50 +00:00
2020-12-22 09:27:45 +00:00
2021-02-03 20:19:29 +01:00
2021-02-17 10:12:00 +00:00
2021-02-17 15:45:01 +00:00
2020-12-02 15:10:29 +00:00
2020-12-02 15:10:29 +00:00
2020-07-15 18:26:11 -06:00
2021-01-26 17:12:04 +01:00
2019-07-05 11:32:31 +00:00
2021-02-14 13:57:56 +00:00
2019-11-11 19:25:14 +00:00
2021-02-03 20:19:29 +01:00
2020-12-02 15:10:29 +00:00
2020-11-16 18:04:23 +00:00
2021-02-17 15:45:01 +00:00
2021-02-17 15:45:01 +00:00
2021-02-24 09:52:45 +00:00
2019-09-09 19:28:18 +00:00
2021-02-13 08:58:20 +00:00
2020-12-06 06:18:07 +01:00
2021-02-05 13:41:26 +00:00
2021-02-14 13:57:56 +00:00
2021-02-14 13:57:56 +00:00
2019-12-06 19:55:39 +01:00
2021-02-04 22:42:08 +00:00
2021-02-01 13:58:20 +00:00
2019-11-11 19:25:14 +00:00
2019-11-11 19:25:14 +00:00
2021-02-17 14:06:11 +01:00
2021-02-22 13:10:02 +01:00
2021-02-03 20:19:29 +01:00
2021-02-03 09:55:29 +01:00
2021-01-26 16:53:42 +01:00
2020-12-02 15:10:29 +00:00
2020-01-30 17:49:08 +00:00
2019-09-12 19:09:24 +02:00
2020-12-02 15:10:29 +00:00
2020-03-31 05:43:40 +00:00
2019-11-11 19:25:14 +00:00
2021-02-13 08:58:20 +00:00
2021-01-07 22:43:42 +01:00
2021-02-11 18:51:40 +00:00
2020-08-12 15:43:38 +00:00
2020-12-02 15:10:29 +00:00
2021-02-17 02:31:32 +01:00
2020-08-13 23:00:21 +00:00
2021-02-11 15:50:31 +00:00
2020-02-22 16:58:01 +00:00
2020-04-28 09:04:49 +00:00
2020-03-27 10:39:58 +01:00
2021-02-17 14:06:11 +01:00
2020-11-16 18:04:23 +00:00
2020-01-02 13:03:08 +05:30
2020-10-07 16:16:57 +00:00
2020-12-17 21:46:41 +01:00
2021-02-19 17:18:50 +01:00
2020-03-26 18:52:10 +00:00
2021-02-19 01:13:05 +01:00
2019-09-15 16:02:45 +02:00
2021-02-24 09:58:31 +00:00
2021-02-21 17:03:09 +01:00
2021-02-04 20:04:15 +00:00
2021-02-21 16:25:17 +00:00
2020-11-16 18:04:23 +00:00
2021-02-19 01:13:05 +01:00
2020-12-02 15:10:29 +00:00