ecore-wl2: Add API function to set if wm rotation is supported

Small patch to add an API function which can be called to set if
window manager rotation is supported.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-09 09:12:39 -04:00
parent 05f770a1ab
commit 8f9163aaa1
3 changed files with 23 additions and 0 deletions

View File

@ -972,6 +972,17 @@ EAPI Ecore_Wl2_Output *ecore_wl2_window_output_find(Ecore_Wl2_Window *window);
*/
EAPI void ecore_wl2_window_buffer_transform_set(Ecore_Wl2_Window *window, int transform);
/**
* Set if window rotation is supported by the window manager
*
* @param window
* @param enabled
*
* @ingroup Ecore_Wl2_Window_Group
* @since 1.20
*/
EAPI void ecore_wl2_window_wm_rotation_supported_set(Ecore_Wl2_Window *window, Eina_Bool enabled);
/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group

View File

@ -185,6 +185,11 @@ struct _Ecore_Wl2_Window
{
Eina_Bool configure : 1;
} pending;
struct
{
Eina_Bool supported : 1;
} wm_rot;
};
struct _Ecore_Wl2_Output

View File

@ -1213,3 +1213,10 @@ ecore_wl2_window_buffer_transform_set(Ecore_Wl2_Window *window, int transform)
wl_surface_set_buffer_transform(window->surface, transform);
}
EAPI void
ecore_wl2_window_wm_rotation_supported_set(Ecore_Wl2_Window *window, Eina_Bool enabled)
{
EINA_SAFETY_ON_NULL_RETURN(window);
window->wm_rot.supported = enabled;
}