e_comp_canvas: remove the unused inline functions 37/318937/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 31 Jan 2025 06:22:25 +0000 (15:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 3 Feb 2025 01:10:12 +0000 (10:10 +0900)
They are useless.

Change-Id: I95e0c38e35ffbb34a839816517fefe315a71bd73

src/bin/compmgr/e_comp_canvas_intern.h
src/bin/windowmgr/e_bindings.c

index ee664c2f15f04f8bffade0ea42caf08054e1fbbf..61ae3a9b8bbd476f7cb5ac96b4b3447fd6bb97ff 100644 (file)
@@ -18,47 +18,4 @@ EINTERN void       e_comp_canvas_keys_ungrab(void);
 EINTERN void       e_comp_canvas_feed_mouse_up(unsigned int activate_time);
 EINTERN int        e_comp_canvas_norender_get(void);
 
-/* the following functions are used for adjusting root window coordinates
- * to/from canvas coordinates.
- * this ensures correct positioning when running E as a nested compositor
- *
- * - use the "adjust" functions to go root->canvas
- * - use the "unadjust" functions to go canvas->root
- */
-static inline int
-e_comp_canvas_x_root_unadjust(int x)
-{
-   int cx;
-
-   ecore_evas_geometry_get(e_comp_ee_get(), &cx, NULL, NULL, NULL);
-   return x + cx;
-}
-
-static inline int
-e_comp_canvas_y_root_unadjust(int y)
-{
-   int cy;
-
-   ecore_evas_geometry_get(e_comp_ee_get(), NULL, &cy, NULL, NULL);
-   return y + cy;
-}
-
-static inline int
-e_comp_canvas_x_root_adjust(int x)
-{
-   int cx;
-
-   ecore_evas_geometry_get(e_comp_ee_get(), &cx, NULL, NULL, NULL);
-   return x - cx;
-}
-
-static inline int
-e_comp_canvas_y_root_adjust(int y)
-{
-   int cy;
-
-   ecore_evas_geometry_get(e_comp_ee_get(), NULL, &cy, NULL, NULL);
-   return y - cy;
-}
-
 #endif
index 7e4c65cf5dcdb4f56fb3c165fc646c3c9a863011..d1e71e3f05e6c8af27d6719a2dbc32849e3d38be 100644 (file)
@@ -59,8 +59,8 @@ e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_
    memset(event, 0, sizeof(E_Binding_Event_Wheel));
    event->direction = ev->direction;
    event->z = ev->z;
-   event->canvas.x = e_comp_canvas_x_root_adjust(ev->root.x);
-   event->canvas.y = e_comp_canvas_x_root_adjust(ev->root.y);
+   event->canvas.x = 0;
+   event->canvas.y = 0;
    event->timestamp = ev->timestamp;
    event->modifiers = _e_bindings_modifiers(ev->modifiers);
 }
@@ -70,8 +70,8 @@ e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev,
 {
    memset(event, 0, sizeof(E_Binding_Event_Mouse_Button));
    event->button = ev->buttons;
-   event->canvas.x = e_comp_canvas_x_root_adjust(ev->root.x);
-   event->canvas.y = e_comp_canvas_x_root_adjust(ev->root.y);
+   event->canvas.x = 0;
+   event->canvas.y = 0;
    event->timestamp = ev->timestamp;
    event->modifiers = _e_bindings_modifiers(ev->modifiers);