efl_ui_win.c: send bounds changed signal on window rotation
authorShilpa Singh <shilpa.singh@samsung.com>
Wed, 29 Nov 2017 14:36:39 +0000 (20:06 +0530)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 10:41:07 +0000 (19:41 +0900)
Change-Id: Ide6b3de02f62d73d4a7b24f5a611512028af2371
commit: https://phab.enlightenment.org/D5469

src/lib/elementary/efl_ui_win.c

index 06e972e..a0144ef 100644 (file)
@@ -1837,6 +1837,19 @@ _elm_win_state_change(Ecore_Evas *ee)
           (obj, EFL_UI_WIN_EVENT_ROTATION_CHANGED, NULL);
         efl_event_callback_legacy_call
           (obj, EFL_UI_WIN_EVENT_WM_ROTATION_CHANGED, NULL);
+        if (_elm_config->atspi_mode)
+          {
+             Evas_Coord x = 0, y = 0, width = 0, height = 0;
+             elm_win_screen_size_get(obj, &x, &y, &width, &height);
+             if ((sd->rot == 0) || (sd->rot == 180))
+               {
+                  efl_access_bounds_changed_signal_emit(obj, x, y, width, height);
+               }
+             else
+               {
+                  efl_access_bounds_changed_signal_emit(obj, x, y, height, width);
+               }
+          }
      }
 
    // TIZEN_ONLY(20150707): elm_conform for wayland, and signal if parts are changed