1
0
Fork 0

wayland-outputs: Use the wrappers for post_event

This commit is contained in:
Jasper St. Pierre 2015-02-22 10:37:55 -08:00
parent 7303955618
commit 94b111cf6c

View file

@ -199,24 +199,22 @@ wayland_output_update_for_output (MetaWaylandOutput *wayland_output,
wayland_output->y != output->crtc->rect.y || wayland_output->y != output->crtc->rect.y ||
wayland_output->transform != wl_transform) wayland_output->transform != wl_transform)
{ {
wl_resource_post_event (resource, wl_output_send_geometry (resource,
WL_OUTPUT_GEOMETRY, (int)output->crtc->rect.x,
(int)output->crtc->rect.x, (int)output->crtc->rect.y,
(int)output->crtc->rect.y, output->width_mm,
output->width_mm, output->height_mm,
output->height_mm, output->subpixel_order,
output->subpixel_order, output->vendor,
output->vendor, output->product,
output->product, wl_transform);
wl_transform);
} }
wl_resource_post_event (resource, wl_output_send_mode (resource,
WL_OUTPUT_MODE, mode_flags,
mode_flags, (int)output->crtc->current_mode->width,
(int)output->crtc->current_mode->width, (int)output->crtc->current_mode->height,
(int)output->crtc->current_mode->height, (int)output->crtc->current_mode->refresh_rate);
(int)output->crtc->current_mode->refresh_rate);
} }
/* It's very important that we change the output pointer here, as /* It's very important that we change the output pointer here, as