Skip to content

GUACAMOLE-2259: Set initial height/width on last_frame to 0#657

Merged
mike-jumper merged 1 commit intoapache:staging/1.6.1from
sschiffli:GUACAMOLE-2259-64x64-layer-fix
Apr 15, 2026
Merged

GUACAMOLE-2259: Set initial height/width on last_frame to 0#657
mike-jumper merged 1 commit intoapache:staging/1.6.1from
sschiffli:GUACAMOLE-2259-64x64-layer-fix

Conversation

@sschiffli
Copy link
Copy Markdown
Member

This ensures the check for layer size changes will send the proper size instruction even if the layer happens to be GUAC_DISPLAY_RESIZE_FACTOR x GUAC_DISPLAY_RESIZE_FACTOR (currently 64x64)

/* Commit any change in layer size */
if (current->pending_frame.width != current->last_frame.width
        || current->pending_frame.height != current->last_frame.height) {

Having the last_frame buffer initially NULL also more clearly conveys that no frame has been sent yet, and once a frame has been sent, the buffer reallocates on sizes changes and will function normally.

@mike-jumper mike-jumper merged commit 0e34b9a into apache:staging/1.6.1 Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants