summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-07-31 16:06:43 +1200
committerBen Bridle <ben@derelict.engineering>2024-07-31 16:06:43 +1200
commit8d626d526cbf27b02896af82979a090c0b768a7d (patch)
treea7df7f1bd380dfd0ddc2d79533338aa11752b25b /src
parent3d44c407c5c6c5574f6d3f272c6651fd75e07deb (diff)
downloadphosphor-8d626d526cbf27b02896af82979a090c0b768a7d.zip
Improve comment clarity
Diffstat (limited to 'src')
-rw-r--r--src/window.rs5
1 files changed, 2 insertions, 3 deletions
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;