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