Skip to content

server: fail on global name overflow

Simon Ser requested to merge emersion/wayland:global-name-overflow into main

display->id is initialized to 1, making 0 a convenient value to indicate an invalid global name. Make sure to not return a zero global name on overflow. Moreover, if we wrap around, we might cycle back to a global name which is already in-use.

Edited by Simon Ser

Merge request reports