[mutter] wayland-outputs: Use the wrappers for post_event



commit 94b111cf6c794601d7e9425eaaa1bd6ed5ee70e6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Feb 22 10:37:55 2015 -0800

    wayland-outputs: Use the wrappers for post_event

 src/wayland/meta-wayland-outputs.c |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/src/wayland/meta-wayland-outputs.c b/src/wayland/meta-wayland-outputs.c
index e83bee2..349b2c3 100644
--- a/src/wayland/meta-wayland-outputs.c
+++ b/src/wayland/meta-wayland-outputs.c
@@ -199,24 +199,22 @@ 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,
-                                    (int)output->crtc->rect.x,
-                                    (int)output->crtc->rect.y,
-                                    output->width_mm,
-                                    output->height_mm,
-                                    output->subpixel_order,
-                                    output->vendor,
-                                    output->product,
-                                    wl_transform);
+          wl_output_send_geometry (resource,
+                                   (int)output->crtc->rect.x,
+                                   (int)output->crtc->rect.y,
+                                   output->width_mm,
+                                   output->height_mm,
+                                   output->subpixel_order,
+                                   output->vendor,
+                                   output->product,
+                                   wl_transform);
         }
 
-      wl_resource_post_event (resource,
-                              WL_OUTPUT_MODE,
-                              mode_flags,
-                              (int)output->crtc->current_mode->width,
-                              (int)output->crtc->current_mode->height,
-                              (int)output->crtc->current_mode->refresh_rate);
+      wl_output_send_mode (resource,
+                           mode_flags,
+                           (int)output->crtc->current_mode->width,
+                           (int)output->crtc->current_mode->height,
+                           (int)output->crtc->current_mode->refresh_rate);
     }
 
   /* It's very important that we change the output pointer here, as


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]