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
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);
}
{
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);