mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-06 06:10:17 +01:00
Create resource for wl_output
This commit is contained in:
parent
2821aaaf9c
commit
fd07fb76bc
1 changed files with 6 additions and 4 deletions
|
|
@ -1666,10 +1666,12 @@ bind_output(struct wl_client *client,
|
|||
{
|
||||
struct wlsc_output *output = data;
|
||||
struct wlsc_mode *mode;
|
||||
struct wl_resource *resource;
|
||||
|
||||
output->resource.client = client;
|
||||
output->resource.object.id = id;
|
||||
wl_resource_post_event(&output->resource,
|
||||
resource = wl_client_add_object(client,
|
||||
&wl_output_interface, NULL, id, data);
|
||||
|
||||
wl_resource_post_event(resource,
|
||||
WL_OUTPUT_GEOMETRY,
|
||||
output->x,
|
||||
output->y,
|
||||
|
|
@ -1679,7 +1681,7 @@ bind_output(struct wl_client *client,
|
|||
output->make, output->model);
|
||||
|
||||
wl_list_for_each (mode, &output->mode_list, link) {
|
||||
wl_resource_post_event(&output->resource,
|
||||
wl_resource_post_event(resource,
|
||||
WL_OUTPUT_MODE,
|
||||
mode->flags,
|
||||
mode->width,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue