Commit 6f4b4516 for guacamole.apache.org

commit 6f4b4516350605f7a3135ef7db18b367d4188ae9
Author: Michael Jumper <mjumper@apache.org>
Date:   Sat Jul 11 21:15:11 2026 -0700

    GUACAMOLE-2270: Avoid ABBA deadlock between guac_display_dup() and frame flush.

diff --git a/src/libguac/display.c b/src/libguac/display.c
index 5c0c1cef..f8bd96e2 100644
--- a/src/libguac/display.c
+++ b/src/libguac/display.c
@@ -256,8 +256,14 @@ void guac_display_dup(guac_display* display, guac_socket* socket) {

         const guac_layer* layer = current->layer;

-        guac_rect layer_bounds;
-        guac_display_layer_get_bounds(current, &layer_bounds);
+        /* Determine layer bounds from last frame, NOT pending frame as
+         * provided by guac_display_layer_get_bounds() */
+        guac_rect layer_bounds = {
+            .left   = 0,
+            .top    = 0,
+            .right  = current->last_frame.width,
+            .bottom = current->last_frame.height
+        };

         int width = guac_rect_width(&layer_bounds);
         int height = guac_rect_height(&layer_bounds);