David Parsons
81c0ebf107
ui/cocoa: Fix window clipping on macOS 14
...
macOS Sonoma changes the NSView.clipsToBounds to false by default
where it was true in earlier version of macOS. This causes the window
contents to be occluded by the frame at the top of the window. This
fixes the issue by conditionally compiling the clipping on Sonoma to
true. NSView only exposes the clipToBounds in macOS 14 and so has
to be fixed via conditional compilation.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1994
Signed-off-by: David Parsons <dave@daveparsons.net>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20240224140620.39200-1-dave@daveparsons.net>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit f5af80271aad356233b2bea2369b3b2211fa395d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-03-09 18:59:33 +03:00
..
2020-10-26 07:08:38 -04:00
2023-10-17 15:20:53 +02:00
2024-02-20 18:49:10 +03:00
2024-03-09 18:59:33 +03:00
2023-09-12 10:37:02 +04:00
2023-09-12 10:37:02 +04:00
2023-11-07 14:04:25 +04:00
2023-09-12 10:37:02 +04:00
2024-02-20 18:49:44 +03:00
2023-07-25 10:56:51 +01:00
2023-09-12 10:37:02 +04:00
2023-05-28 13:08:25 +04:00
2023-06-27 17:08:56 +02:00
2023-03-13 22:57:39 +04:00
2023-10-03 15:04:56 +04:00
2023-06-27 17:08:56 +02:00
2021-12-21 10:50:22 +04:00
2023-11-07 14:04:25 +04:00
2021-12-21 10:50:22 +04:00
2023-11-21 14:38:14 +04:00
2023-06-27 17:08:56 +02:00
2023-06-27 17:08:56 +02:00
2023-06-27 17:08:56 +02:00
2023-07-17 15:22:28 +04:00
2022-04-06 14:31:55 +02:00
2023-12-04 10:55:18 +04:00
2023-08-07 17:13:42 +04:00
2023-11-21 14:38:14 +04:00
2021-08-02 12:55:51 +01:00
2019-09-17 13:43:22 +02:00
2020-08-21 06:18:30 -04:00
2023-10-19 23:13:28 +02:00
2022-05-03 15:52:37 +04:00
2023-10-19 23:13:28 +02:00
2019-08-16 13:31:52 +02:00
2022-04-06 14:31:55 +02:00
2023-08-31 19:47:43 +02:00
2024-02-20 19:01:32 +03:00
2023-11-07 14:04:24 +04:00
2019-01-21 09:43:13 +01:00
2023-08-31 19:47:43 +02:00
2023-06-27 17:08:56 +02:00
2023-09-12 10:37:02 +04:00
2023-11-07 13:08:49 +01:00
2022-03-14 15:16:16 +04:00
2023-11-21 14:38:14 +04:00
2023-10-20 08:51:41 +02:00
2023-09-29 08:13:57 +02:00
2023-10-03 15:04:56 +04:00
2020-10-21 15:46:14 +02:00
2023-10-03 15:04:56 +04:00
2020-08-21 06:18:24 -04:00
2023-02-14 09:11:27 +01:00
2023-11-07 14:04:25 +04:00
2023-11-17 10:07:52 +01:00
2023-01-08 01:54:22 -05:00
2023-10-20 06:46:53 -07:00
2022-11-08 10:23:06 +01:00
2022-11-08 10:23:06 +01:00
2021-06-15 17:17:09 +02:00
2021-06-15 17:17:09 +02:00
2020-11-04 08:25:17 +01:00
2016-07-12 16:20:46 +02:00
2023-12-04 11:28:26 +04:00
2023-09-04 14:57:44 +04:00
2022-10-22 23:15:40 +02:00
2023-09-04 14:57:44 +04:00
2016-07-12 16:19:16 +02:00
2019-09-17 13:45:10 +02:00
2020-08-21 06:18:30 -04:00
2023-09-29 08:13:57 +02:00
2016-07-12 16:19:16 +02:00
2022-11-08 10:23:06 +01:00
2023-08-31 19:47:43 +02:00
2023-06-10 00:00:24 +03:00
2017-02-08 14:59:36 +01:00
2023-09-29 08:13:57 +02:00
2018-02-09 13:52:15 +01:00
2023-11-07 14:04:25 +04:00
2023-06-05 20:48:34 +02:00
2016-07-12 16:20:46 +02:00
2024-02-20 18:45:20 +03:00
2023-10-03 10:29:39 +02:00
2020-05-19 09:06:44 +02:00
2021-05-02 17:24:50 +02:00
2018-01-25 15:02:00 +01:00