From c1de1bb90473d599082720b5d9cd36d8eb73444d Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Thu, 10 Nov 2016 10:54:31 +0100 Subject: [PATCH] toast_popup/ticker: use all rotation values Restore full spectrum of popup rotations. The proper rotation value should be chosen by window manager instead by application. Change-Id: I403579908addf7677cef379dee20bbd4495231b9 --- src/modules/information/toast_popup.c | 5 ++--- src/ticker.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/information/toast_popup.c b/src/modules/information/toast_popup.c index 7e5bcd8..f4badcf 100644 --- a/src/modules/information/toast_popup.c +++ b/src/modules/information/toast_popup.c @@ -84,9 +84,8 @@ static void _post_toast_message(char *message) elm_win_title_set(toast_window, "toast"); if (elm_win_wm_rotation_supported_get(toast_window)) { - int rots[1] = { s_info.app_data->win.angle }; - elm_win_wm_rotation_available_rotations_set(toast_window, - (const int *)(&rots), ARRAY_SIZE(rots)); + int rots[4] = { 0, 90, 180, 270 }; + elm_win_wm_rotation_available_rotations_set(toast_window, rots, ARRAY_SIZE(rots)); } evas_object_show(toast_window); diff --git a/src/ticker.c b/src/ticker.c index 2be5b1c..9780bae 100644 --- a/src/ticker.c +++ b/src/ticker.c @@ -610,7 +610,7 @@ static Evas_Object *_ticker_window_create(struct appdata *ad) evas_object_move(win, 0, 0); if (elm_win_wm_rotation_supported_get(win)) { - int rots[1] = { ad->win.angle }; + int rots[4] = { 0, 90, 180, 270 }; elm_win_wm_rotation_available_rotations_set(win, rots, ARRAY_SIZE(rots)); } -- 2.7.4