typedef struct _Ecore_Wl2_Event_Window_Rotation
{
- Ecore_Wl2_Window *window;
+ unsigned int win;
int rotation, w, h, angle;
Eina_Bool resize : 1;
} Ecore_Wl2_Event_Window_Rotation;
* @ingroup Ecore_Wl2_Window_Group
* @since 1.20
*/
-EAPI Eina_Bool ecore_wl2_window_available_rotations_get(Ecore_Wl2_Window *window, int **rots, unsigned int count);
+EAPI Eina_Bool ecore_wl2_window_available_rotations_get(Ecore_Wl2_Window *window, int **rots, unsigned int *count);
EAPI void ecore_wl2_window_rotation_change_prepare_send(Ecore_Wl2_Window *window, int rot, int w, int h, Eina_Bool resize);
EAPI void ecore_wl2_window_rotation_change_prepare_done_send(Ecore_Wl2_Window *window, int rot);
EAPI int ECORE_WL2_EVENT_SEAT_SELECTION = 0;
EAPI int ECORE_WL2_EVENT_OUTPUT_TRANSFORM = 0;
EAPI int ECORE_WL2_EVENT_WINDOW_ROTATE = 0;
-EAPI int ECORE_Wl2_EVENT_WINDOW_ROTATION_CHANGE_PREPARE = 0;
-EAPI int ECORE_Wl2_EVENT_WINDOW_ROTATION_CHANGE_PREPARE_DONE = 0;
-EAPI int ECORE_Wl2_EVENT_WINDOW_ROTATION_CHANGE_REQUEST = 0;
-EAPI int ECORE_Wl2_EVENT_WINDOW_ROTATION_CHANGE_DONE = 0;
+EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_PREPARE = 0;
+EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_PREPARE_DONE = 0;
+EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_REQUEST = 0;
+EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE = 0;
EAPI int _ecore_wl2_event_window_www = -1;
EAPI int _ecore_wl2_event_window_www_drag = -1;
{
EINA_SAFETY_ON_NULL_RETURN(window);
window->wm_rot.count = count;
- window->wm_rot.available_rots = rots;
+ window->wm_rot.available_rots = (int *)rots;
}
EAPI Eina_Bool
-ecore_wl2_window_available_rotations_get(Ecore_Wl2_Window *window, int **rots, unsigned int count)
+ecore_wl2_window_available_rotations_get(Ecore_Wl2_Window *window, int **rots, unsigned int *count)
{
- int i = 0;
+ unsigned int i = 0;
int *val = NULL;
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
+ *rots = NULL;
*count = window->wm_rot.count;
if (window->wm_rot.count >= 1)
ev = calloc(1, sizeof(Ecore_Wl2_Event_Window_Rotation_Change_Prepare));
if (!ev) return;
- ev->window = window;
+ ev->win = window->id;
ev->rotation = rot;
ev->w = w;
ev->h = h;
ev = calloc(1, sizeof(Ecore_Wl2_Event_Window_Rotation_Change_Prepare_Done));
if (!ev) return;
- ev->window = window;
+ ev->win = window->id;
ev->rotation = rot;
ev->w = 0;
ev->h = 0;
EAPI void
ecore_wl2_window_rotation_change_request_send(Ecore_Wl2_Window *window, int rot)
{
- Ecore_Wl2_Event_Window_Rotation_Change_Reqest *ev;
+ Ecore_Wl2_Event_Window_Rotation_Change_Request *ev;
EINA_SAFETY_ON_NULL_RETURN(window);
ev = calloc(1, sizeof(Ecore_Wl2_Event_Window_Rotation_Change_Request));
if (!ev) return;
- ev->window = window;
+ ev->win = window->id;
ev->rotation = rot;
ev->w = 0;
ev->h = 0;
EAPI void
ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, int rot, int w, int h)
{
- Ecore_Wl2_Event_Window_Rotation_Change_Reqest *ev;
+ Ecore_Wl2_Event_Window_Rotation_Change_Done *ev;
EINA_SAFETY_ON_NULL_RETURN(window);
- ev = calloc(1, sizeof(Ecore_Wl2_Event_Window_Rotation_Change_Request));
+ ev = calloc(1, sizeof(Ecore_Wl2_Event_Window_Rotation_Change_Done));
if (!ev) return;
- ev->window = window;
+ ev->win = window->id;
ev->rotation = rot;
ev->w = w;
ev->h = h;