Use wl_resource_create() for creating resources
This commit sets the version numbers for all added/created objects. The wl_compositor.create_surface implementation was altered to create a surface with the same version as the underlying wl_compositor. Since no other "child interfaces" have version greater than 1, they were all hard-coded to version 1. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
committed by
Kristian Høgsberg
parent
d27cb096ad
commit
a85118c1b8
@@ -159,8 +159,10 @@ bind_xserver(struct wl_client *client,
|
||||
return;
|
||||
|
||||
wxs->resource =
|
||||
wl_client_add_object(client, &xserver_interface,
|
||||
&xserver_implementation, id, wxs);
|
||||
wl_resource_create(client, &xserver_interface,
|
||||
1, id);
|
||||
wl_resource_set_implementation(wxs->resource, &xserver_implementation,
|
||||
wxs, NULL);
|
||||
|
||||
wxs->wm = weston_wm_create(wxs);
|
||||
if (wxs->wm == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user