sway icon indicating copy to clipboard operation
sway copied to clipboard

layer-shell: handle commits from uninitialized surfaces

Open vyivel opened this issue 1 year ago • 2 comments

Fixes: 2c69e19fd30c5ceac61d6af821c6c6875cd3f8b6

vyivel avatar Jan 22 '24 15:01 vyivel

Why should we handle commits for uninitialized surfaces?

emersion avatar Jan 22 '24 16:01 emersion

In the latest release, the exclusive zone seems to be applied when the surface is created and destroyed; i.e. if there's a delay between creating and mapping, or unmapping and destroying, the user will see an empty gap. On latest commit, the exclusive zone is applied only when the surface is mapped (because of a corresponding check in the layer-shell scene helper), but if a surface commits a NULL buffer, the output isn't rearranged.

…we could just rearrange the output in the surface unmap handler, actually.

vyivel avatar Jan 22 '24 16:01 vyivel