Convert to wl_global_create/destroy()

This commit is contained in:
Kristian Høgsberg
2013-07-08 19:03:57 -04:00
parent ac3a8b83fd
commit 919cddb0ab
11 changed files with 69 additions and 64 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ module_init(struct weston_compositor *compositor,
WL_EVENT_READABLE,
weston_xserver_handle_event, wxs);
wl_display_add_global(display, &xserver_interface, wxs, bind_xserver);
wl_global_create(display, &xserver_interface, 1, wxs, bind_xserver);
wxs->destroy_listener.notify = weston_xserver_destroy;
wl_signal_add(&compositor->destroy_signal, &wxs->destroy_listener);