aboutsummaryrefslogtreecommitdiff
path: root/include/util/global.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-29 19:12:50 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-12-14 13:13:50 +0000
commit4377b5529279aa9dab64256d22ad0f2e9009843c (patch)
treed019f88bcd2cde13973f1cf1fcc4f59d7dbc5ad7 /include/util/global.h
parent4c59f7d46a949548caa55805b00922f846d58525 (diff)
util/global: remove wl_display arg from wlr_global_destroy_safe
Since [1], we can get the wl_display directly from the wl_global. [1]: https://gitlab.freedesktop.org/wayland/wayland/-/commit/2b22160fb690a76247aa9bd0be3069ff43e8239f
Diffstat (limited to 'include/util/global.h')
-rw-r--r--include/util/global.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/util/global.h b/include/util/global.h
index ea0fda83..1c979ab1 100644
--- a/include/util/global.h
+++ b/include/util/global.h
@@ -9,7 +9,6 @@
* Globals that are created and destroyed on the fly need special handling to
* prevent race conditions with wl_registry. Use this function to destroy them.
*/
-void wlr_global_destroy_safe(struct wl_global *global,
- struct wl_display *display);
+void wlr_global_destroy_safe(struct wl_global *global);
#endif