summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wloutput.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2012-03-05 09:58:32 +0100
committerSamuel Rødal <samuel.rodal@nokia.com>2012-03-05 10:03:46 +0100
commit6200e672a24d7d61e53b46ddb4ef5e0c3733516f (patch)
tree1ba752022e01fa69347743835f25ec7ffed73f22 /src/compositor/wayland_wrapper/wloutput.cpp
parentd61d5176ce7f90710d53edcc3a176cc9a2e05e90 (diff)
Use the new cool event wrapper functions generated by wayland-scanner
This gives us some more static typechecking which is cool.. This fixes actually a couple of minor bugs we had, one where we didn't send a value for the refreshrate of a screen, and a couple in selection. Change-Id: I2b4193b488784885d7cce27f7f5b2d2df45c6c83 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wloutput.cpp')
-rw-r--r--src/compositor/wayland_wrapper/wloutput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compositor/wayland_wrapper/wloutput.cpp b/src/compositor/wayland_wrapper/wloutput.cpp
index deae56d6e..57d073de6 100644
--- a/src/compositor/wayland_wrapper/wloutput.cpp
+++ b/src/compositor/wayland_wrapper/wloutput.cpp
@@ -88,11 +88,11 @@ Output::Output(OutputGlobal *outputGlobal, wl_client *client, uint32_t version,
{
Q_UNUSED(version);
m_output_resource = wl_client_add_object(client,&wl_output_interface,0,id,this);
- wl_resource_post_event(m_output_resource, WL_OUTPUT_GEOMETRY, 0, 0,
+ wl_output_send_geometry(m_output_resource, 0, 0,
m_output_global->size().width(), m_output_global->size().height(),0,"","");
- wl_resource_post_event(m_output_resource,WL_OUTPUT_MODE, WL_OUTPUT_MODE_CURRENT|WL_OUTPUT_MODE_PREFERRED,
- m_output_global->size().width(),m_output_global->size().height());
+ wl_output_send_mode(m_output_resource, WL_OUTPUT_MODE_CURRENT|WL_OUTPUT_MODE_PREFERRED,
+ m_output_global->size().width(),m_output_global->size().height(), 60);
}