server: warn about global filtering consistency

The filtering needs to be static given a client and a global,
otherwise libwayland will misbehave.

Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/241#note_1421888
This commit is contained in:
Simon Ser 2022-06-15 10:37:18 +02:00
parent 7eb00b070d
commit 41b10c7458

View file

@ -1208,6 +1208,10 @@ wl_display_destroy(struct wl_display *display)
* Setting the filter NULL will result in all globals being
* advertised to all clients. The default is no filter.
*
* The filter should be installed before any client connects and should always
* take the same decision given a client and a global. Not doing so will result
* in inconsistent filtering and broken wl_registry event sequences.
*
* \memberof wl_display
*/
WL_EXPORT void