aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpp-compile-test.cpp
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-01-24 23:51:57 +0100
committerSimon Ser <contact@emersion.fr>2023-01-25 11:12:59 +0100
commitbe31c5a8c852a57007f9a4115bd3e082c089acf1 (patch)
treeb4199f79e95d8793f27e4eb964abff834f4d93c6 /tests/cpp-compile-test.cpp
parentprotocol: wl_subsurface::destroy does not remove the role (diff)
downloadwayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.tar
wayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.tar.gz
wayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.tar.bz2
wayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.tar.lz
wayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.tar.xz
wayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.tar.zst
wayland-be31c5a8c852a57007f9a4115bd3e082c089acf1.zip
server: fail on global name overflow
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. Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'tests/cpp-compile-test.cpp')
0 files changed, 0 insertions, 0 deletions