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,8 +199,7 @@ wayland_output_update_for_output (MetaWaylandOutput *wayland_output,
wayland_output->y != output->crtc->rect.y ||
wayland_output->transform != wl_transform)
{
wl_resource_post_event (resource,
WL_OUTPUT_GEOMETRY,
wl_output_send_geometry (resource,
(int)output->crtc->rect.x,
(int)output->crtc->rect.y,
output->width_mm,
@ -211,8 +210,7 @@ wayland_output_update_for_output (MetaWaylandOutput *wayland_output,
wl_transform);
}
wl_resource_post_event (resource,
WL_OUTPUT_MODE,
wl_output_send_mode (resource,
mode_flags,
(int)output->crtc->current_mode->width,
(int)output->crtc->current_mode->height,