On Fri Mar 1 12:46:39 2024 +0000, Rémi Bernon wrote:
You can initialize the list entries on creation, and always list_remove
- list_add_tail to make sure it's not added twice.
What I don't like very much is the use of some non-Wine helper, it strongly couples the code to wayland libraries and makes it more difficult to refactor later.
Also, as you're removing the surfaces from the global list, maybe you don't even need a separate entry, and instead can use the same to link them into the "release" surface list? I'm not completely sure I follow all the references there though so maybe I'm missing something.