From 8d626d526cbf27b02896af82979a090c0b768a7d Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 31 Jul 2024 16:06:43 +1200 Subject: Improve comment clarity --- src/window.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/window.rs b/src/window.rs index 47e6fd4..c5a4b09 100644 --- a/src/window.rs +++ b/src/window.rs @@ -98,9 +98,8 @@ impl Window { let pixel_scale = self.controller.pixel_scale().get(); if let Some(dimensions) = self.controller.exact_size() { - // Without this early return, the constant re-setting of the window - // size prevents the window from being able to be positioned with the - // bottom edge below the screen bounds. + // Prevent the window properties from being modified every frame + // and interrupting the actions of the window manager. if pixel_scale == self.pixel_scale && dimensions * pixel_scale == self.surface_dimensions { return; -- cgit v1.2.3-70-g09d2