Propagate screen orientation changes through wayland
[profile/ivi/qtwayland.git] / src / qt-compositor / windowmanagerprotocol / windowmanager.xml
1 <!--
2 # /****************************************************************************
3 # **
4 # ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
5 # ** Contact: Nokia Corporation (qt-info@nokia.com)
6 # **
7 # ** This file is part of qt-compositor.
8 # **
9 # ****************************************************************************/
10 -->
11 <protocol name="wayland_windowmanager">
12     <interface name="wl_windowmanager" version="1">
13         <request name="map_client_to_process">
14             <arg name="processid" type="uint" />
15         </request>
16         <request name="authenticate_with_token">
17             <arg name="processid" type="string" />
18         </request>
19
20         <!-- informs the client that it is visible/not visible on screen and can therfore stop / need to start rendering.
21              The client need to implement the handling of this by itself. This means, we cannot enforce the client to obey,
22              but we can encourage it to do so. -->
23         <event name="client_onscreen_visibility">
24             <arg name="visible" type="int"/>
25         </event>
26
27         <!-- Sets screen rotation, typically based on accelerometer/orientation sensor reading data -->
28         <event name="set_screen_rotation">
29             <arg name="rotation" type="int"/>
30         </event>
31     </interface>
32 </protocol>