-
-}
-
-/* WM_ROTATE */
-#ifndef WAYLAND
-static Ecore_X_Atom _WM_WINDOW_ROTATION_SUPPORTED = 0;
-static Ecore_X_Atom _WM_WINDOW_ROTATION_CHANGE_REQUEST = 0;
-
-static int __check_wm_rotation_support(void)
-{
- _DBG("Disable window manager rotation");
- return -1;
-
- Ecore_X_Window root, win, win2;
- int ret;
-
- if (!_WM_WINDOW_ROTATION_SUPPORTED) {
- _WM_WINDOW_ROTATION_SUPPORTED =
- ecore_x_atom_get("_E_WINDOW_ROTATION_SUPPORTED");
- }
-
- if (!_WM_WINDOW_ROTATION_CHANGE_REQUEST) {
- _WM_WINDOW_ROTATION_CHANGE_REQUEST =
- ecore_x_atom_get("_E_WINDOW_ROTATION_CHANGE_REQUEST");
- }
-
- root = ecore_x_window_root_first_get();
- ret = ecore_x_window_prop_xid_get(root,
- _WM_WINDOW_ROTATION_SUPPORTED,
- ECORE_X_ATOM_WINDOW,
- &win, 1);
- if ((ret == 1) && (win))
- {
- ret = ecore_x_window_prop_xid_get(win,
- _WM_WINDOW_ROTATION_SUPPORTED,
- ECORE_X_ATOM_WINDOW,
- &win2, 1);
- if ((ret == 1) && (win2 == win))
- return 0;
- }
-
- return -1;
-}
-
-static void __set_wm_rotation_support(unsigned int win, unsigned int set)
-{
- GSList *iter = NULL;
- struct win_node *entry = NULL;
-
- if (0 == win) {
- for (iter = g_winnode_list; iter != NULL; iter = g_slist_next(iter)) {
- entry = iter->data;
- if (entry->win) {
- ecore_x_window_prop_card32_set(entry->win,
- _WM_WINDOW_ROTATION_SUPPORTED,
- &set, 1);
- }
- }
- } else {
- ecore_x_window_prop_card32_set(win,
- _WM_WINDOW_ROTATION_SUPPORTED,
- &set, 1);
- }