From 209ccee440e32e61cb9fc5bf0ab1fc8e51ce4e13 Mon Sep 17 00:00:00 2001 From: aaddrick Date: Sun, 22 Mar 2026 09:51:36 -0400 Subject: [PATCH] style: condense resize event comment to essential details Co-Authored-By: Claude --- scripts/frame-fix-wrapper.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/frame-fix-wrapper.js b/scripts/frame-fix-wrapper.js index 204156d..5bd7a27 100644 --- a/scripts/frame-fix-wrapper.js +++ b/scripts/frame-fix-wrapper.js @@ -187,14 +187,10 @@ Module.prototype.require = function(id) { }); // Tiling WMs (Hyprland, i3, sway) emit 'resize' on - // workspace switches. The upstream layout handler uses - // getContentBounds() which returns stale cached values, - // setting child views to wrong dimensions. Fix - // immediately so we race the upstream handler rather - // than arriving late. The fixChildBounds() guard - // (cur.width !== cw check) prevents unnecessary - // setBounds during drag resize where the cache stays - // in sync. Fixes: #323 + // workspace switches with stale getContentBounds() + // cache. The size-change guard in fixChildBounds() + // prevents unnecessary work during drag resize. + // Fixes: #323 this.on('resize', fixAfterStateChange); // ready-to-show fires once per window lifecycle