ecore_wl2: add a configured information in Ecore_Wl2_Window
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 8 Nov 2017 07:58:26 +0000 (16:58 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 19 Dec 2017 01:06:31 +0000 (10:06 +0900)
@tizen_feature

Change-Id: I8d1408676619695a5fba66b059ac4461674c41cc

src/lib/ecore_wl2/ecore_wl2_private.h
src/lib/ecore_wl2/ecore_wl2_window.c

index 2c68c05..ea54de3 100644 (file)
@@ -214,6 +214,15 @@ struct _Ecore_Wl2_Window
    Eina_Rectangle opaque;
    Eina_Rectangle input_rect;
 
+   // TIZEN_ONLY(20160323)
+   struct
+     {
+        int x, y; /* it indicates a position configured by window manager. */
+        int w, h;
+        unsigned int edges;
+     } configured;
+   //
+
    Ecore_Wl2_Window_Type type;
 
    struct
index 707ff5e..397ae17 100644 (file)
@@ -86,6 +86,13 @@ _ecore_wl2_window_configure_send(Ecore_Wl2_Window *win)
      ev->states |= ECORE_WL2_WINDOW_STATE_MAXIMIZED;
 
    win->req_config = win->def_config;
+
+   // TIZEN_ONLY(20160323)
+   window->configured.w = w;
+   window->configured.h = h;
+   window->configured.edges = edges;
+   //
+
    ecore_event_add(ECORE_WL2_EVENT_WINDOW_CONFIGURE, ev, NULL, NULL);
 
    if (win->def_config.focused)
@@ -480,6 +487,14 @@ ecore_wl2_window_new(Ecore_Wl2_Display *display, Ecore_Wl2_Window *parent, int x
    win->opaque.w = w;
    win->opaque.h = h;
 
+   // TIZEN_ONLY(20160323)
+   win->configured.x = -99999; /* this is arbitary */
+   win->configured.y = -99999;
+   win->configured.w = w;
+   win->configured.h = h;
+   win->configured.edges = 0;
+   //
+
    win->pending.configure = EINA_TRUE;
    display->windows =
      eina_inlist_append(display->windows, EINA_INLIST_GET(win));