summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_window.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 08b56ffe08..e4ded74569 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1288,3 +1288,22 @@ ecore_wl2_window_available_rotations_get(Ecore_Wl2_Window *window, int **rots, u
1288 1288
1289 return EINA_FALSE; 1289 return EINA_FALSE;
1290} 1290}
1291
1292EAPI void
1293ecore_wl2_window_rotation_change_prepare_send(Ecore_Wl2_Window *window, int rot, int w, int h, Eina_Bool resize)
1294{
1295 Ecore_Wl2_Event_Window_Rotation_Change_Prepare *ev;
1296
1297 EINA_SAFETY_ON_NULL_RETURN(window);
1298
1299 ev = calloc(1, sizeof(Ecore_Wl2_Event_Window_Rotation_Change_Prepare));
1300 if (!ev) return;
1301
1302 ev->window = window;
1303 ev->rotation = rot;
1304 ev->w = w;
1305 ev->h = h;
1306 ev->resize = resize;
1307
1308 ecore_event_add(ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_PREPARE, ev, NULL, NULL);
1309}