aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-06-15 10:37:18 +0200
committerSimon Ser <contact@emersion.fr>2022-06-15 10:37:18 +0200
commit41b10c74589c5350931a688b0e828c85652dae45 (patch)
tree441ea94698e3b905e003e312354386680173e388
parentserver: add PID race condition disclaimer to wl_client_get_credentials (diff)
downloadwayland-41b10c74589c5350931a688b0e828c85652dae45.tar
wayland-41b10c74589c5350931a688b0e828c85652dae45.tar.gz
wayland-41b10c74589c5350931a688b0e828c85652dae45.tar.bz2
wayland-41b10c74589c5350931a688b0e828c85652dae45.tar.lz
wayland-41b10c74589c5350931a688b0e828c85652dae45.tar.xz
wayland-41b10c74589c5350931a688b0e828c85652dae45.tar.zst
wayland-41b10c74589c5350931a688b0e828c85652dae45.zip
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
-rw-r--r--src/wayland-server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c
index 4bcc9ae..8e24b41 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -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