style: condense resize event comment to essential details

Co-Authored-By: Claude <claude@anthropic.com>
This commit is contained in:
aaddrick
2026-03-22 09:51:36 -04:00
parent 2cfc6a8ef9
commit 209ccee440

View File

@@ -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