@devries-cameron20 / t3code-1 / commits / 8fffe6a29d
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(desktop): remove oversized bars from Hyprland SnapShot animations (#10646)

Akshar Patel committed Oct 18, 2026 at 15:07 UTC 8fffe6a29db05c2d479c51acc6a9ac284ac270cf
1 file changed +8 -8
native/hyprland-snap-shot/src/feedback.rs
+8 -8
@@ -464,22 +464,22 @@ impl Feedback {
464 overlay
465 .subsurface
466 .set_position(dest.x.round() as i32, dest.y.round() as i32);
467 - // Immutable textures are uploaded only when they change. Flight frames update
468 - // the viewport and subsurface position, not megabytes of shared-memory pixels.
467 + // Hyprland 0.56.2 retains the old surface size on viewport-only commits.
468 + // Reattach the immutable buffer so the destination size is applied too.
469 let texture = if flashing {
470 Texture::Flash
471 } else {
472 Texture::Image
473 };
474 + overlay.image.attach(
475 + Some((if flashing { &self.flash } else { &self.image }).wl_buffer()),
476 + 0,
477 + 0,
478 + );
479 if overlay.texture != texture {
475 - overlay.image.attach(
476 - Some((if flashing { &self.flash } else { &self.image }).wl_buffer()),
477 - 0,
478 - 0,
479 - );
480 overlay.image.damage_buffer(0, 0, i32::MAX, i32::MAX);
481 - overlay.texture = texture;
481 }
482 + overlay.texture = texture;
483 } else {
484 if overlay.texture != Texture::None {
485 overlay.image.attach(None, 0, 0);