From cb4917d8a0d19ca0959d81dda00938d938afe1e1 Mon Sep 17 00:00:00 2001 From: Marc Espin Date: Thu, 24 Oct 2024 22:37:32 +0200 Subject: [PATCH 1/2] fix: Use the config size for the compositor dirty area in freya-testing when resizing (#989) --- crates/testing/src/launch.rs | 1 + crates/testing/src/test_handler.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/crates/testing/src/launch.rs b/crates/testing/src/launch.rs index 7fad171c2..4d934666b 100644 --- a/crates/testing/src/launch.rs +++ b/crates/testing/src/launch.rs @@ -79,6 +79,7 @@ pub fn launch_test_with_config( }; handler.init_dom(); + handler.resize(handler.config.size); handler } diff --git a/crates/testing/src/test_handler.rs b/crates/testing/src/test_handler.rs index dd69962d9..db2e6e339 100644 --- a/crates/testing/src/test_handler.rs +++ b/crates/testing/src/test_handler.rs @@ -292,6 +292,11 @@ impl TestingHandler { state.information.viewport_size = size; }); self.utils.sdom().get_mut().layout().reset(); + self.utils + .sdom() + .get_mut() + .compositor_dirty_area() + .unite_or_insert(&Area::new((0.0, 0.0).into(), size)); } /// Get the current [CursorIcon]. From e5f7f5a0b46933012c1bc52dd43f760cf7a8e640 Mon Sep 17 00:00:00 2001 From: marc2332 Date: Thu, 31 Oct 2024 15:35:02 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Deploying=20to=20main=20from=20@=20marc2332?= =?UTF-8?q?/freya@cb4917d8a0d19ca0959d81dda00938d938afe1e1=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93233e2ba..2a821cb49 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ If you are interested in supporting the development of this project feel free to Thanks to my sponsors for supporting this project! 😄 -高庆丰 +高庆丰Lino Le Van ### Special thanks 💪