mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
view: Save all buffers associated with view
During the execution of a resize transaction, the buffer associated with a view's surface is saved and reused until the client acknowledges the resulting configure event. However, only one the main buffer of the main surface was stored and rendered, meaning that subsurfaces disappear during resize. Iterate over all, store and render buffers from all surfaces in the view to ensure that correct rendering is preserved.
This commit is contained in:
parent
613abdda6f
commit
fcd0ab8f33
5 changed files with 86 additions and 54 deletions
|
|
@ -511,7 +511,7 @@ static bool scan_out_fullscreen_view(struct sway_output *output,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (view->saved_buffer) {
|
||||
if (!wl_list_empty(&view->saved_buffers)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue