mirror of
https://github.com/aaddrick/claude-desktop-debian.git
synced 2026-05-17 00:26:21 +03:00
style: condense resize event comment to essential details
Co-Authored-By: Claude <claude@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user