ecore_wl2: add events for interactive move/resize done 78/266878/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 Nov 2021 04:22:58 +0000 (13:22 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 Nov 2021 04:22:58 +0000 (13:22 +0900)
Event Type
- ECORE_WL2_EVENT_WINDOW_INTERACTIVE_MOVE_DONE
- ECORE_WL2_EVENT_WINDOW_INTERACTIVE_RESIZE_DONE

Event Structure
- Ecore_Wl2_Event_Window_Interactive_Move_Done
- Ecore_Wl2_Event_Window_Interactive_Resize_Done

Change-Id: I4752611802a3dc9268f7941d769dc20ae399f992

src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2.c

index 497e4c6..a55c6c7 100644 (file)
@@ -665,6 +665,28 @@ typedef struct _Ecore_Wl2_Event_Clipboard_Data_Selected
 } Ecore_Wl2_Event_Clipboard_Data_Selected;
 //
 
+// TIZEN_ONLY(20211120)
+/** @internal */
+typedef struct _Ecore_Wl2_Event_Window_Interactive_Move_Done
+{
+   unsigned int win;
+   int x;
+   int y;
+   unsigned int w;
+   unsigned int h;
+} Ecore_Wl2_Event_Window_Interactive_Move_Done;
+
+/** @internal */
+typedef struct _Ecore_Wl2_Event_Window_Interactive_Resize_Done
+{
+   unsigned int win;
+   int x;
+   int y;
+   unsigned int w;
+   unsigned int h;
+} Ecore_Wl2_Event_Window_Interactive_Resize_Done;
+//
+
 /** @internal */
 typedef struct _Ecore_Wl2_Keygrab_Info
 {
@@ -761,6 +783,10 @@ EAPI extern int ECORE_WL2_EVENT_IGNORE_OUTPUT_TRANSFORM;
 EAPI extern int ECORE_WL2_EVENT_INDICATOR_FLICK; /** @internal */
 EAPI extern int ECORE_WL2_EVENT_CLIPBOARD_DATA_SELECTED; /** @internal */
 //
+// TIZEN_ONLY(20211120)
+EAPI extern int ECORE_WL2_EVENT_WINDOW_INTERACTIVE_MOVE_DONE;
+EAPI extern int ECORE_WL2_EVENT_WINDOW_INTERACTIVE_RESIZE_DONE;
+//
 
 
 /**
index c5d1006..649a058 100644 (file)
@@ -76,6 +76,10 @@ EAPI int ECORE_WL2_EVENT_IGNORE_OUTPUT_TRANSFORM = 0;
 EAPI int ECORE_WL2_EVENT_INDICATOR_FLICK = 0;
 EAPI int ECORE_WL2_EVENT_CLIPBOARD_DATA_SELECTED = 0;
 //
+// TIZEN_ONLY(20211120)
+EAPI int ECORE_WL2_EVENT_WINDOW_INTERACTIVE_MOVE_DONE = 0;
+EAPI int ECORE_WL2_EVENT_WINDOW_INTERACTIVE_RESIZE_DONE = 0;
+//
 
 EAPI int _ecore_wl2_event_window_www = -1;
 EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -239,6 +243,10 @@ ecore_wl2_init(void)
    ECORE_WL2_EVENT_INDICATOR_FLICK = ecore_event_type_new();
    ECORE_WL2_EVENT_CLIPBOARD_DATA_SELECTED = ecore_event_type_new();
 //
+// TIZEN_ONLY(20211120)
+   ECORE_WL2_EVENT_WINDOW_INTERACTIVE_MOVE_DONE = ecore_event_type_new();
+   ECORE_WL2_EVENT_WINDOW_INTERACTIVE_RESIZE_DONE = ecore_event_type_new();
+//
 
    if (!no_session_recovery)
      no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -333,7 +341,12 @@ ecore_wl2_shutdown(void)
                           ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE,
                           ECORE_WL2_EVENT_WINDOW_OFFSCREEN,
                           ECORE_WL2_EVENT_WINDOW_CREATE,
-                          ECORE_WL2_EVENT_WINDOW_DESTROY);
+                          ECORE_WL2_EVENT_WINDOW_DESTROY,
+// TIZEN_ONLY(20211120)
+                          ECORE_WL2_EVENT_WINDOW_INTERACTIVE_MOVE_DONE,
+                          ECORE_WL2_EVENT_WINDOW_INTERACTIVE_RESIZE_DONE
+//
+                          );
 
    //TIZEN_ONLY(20171216): add ecore_wl2_window_find
    _ecore_wl2_window_shutdown();