Ecore_X(cb): Fix ecore_x to build again with xcb.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 22 May 2012 15:12:40 +0000 (15:12 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 22 May 2012 15:12:40 +0000 (15:12 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71327 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xcb/ecore_xcb.c

index 63ab4d1..647d8b1 100644 (file)
@@ -656,7 +656,7 @@ ecore_x_mouse_in_send(Ecore_X_Window win, int x, int y)
 {
    xcb_translate_coordinates_cookie_t cookie;
    xcb_translate_coordinates_reply_t *reply;
-   xcb_motion_notify_event_t ev;
+   xcb_enter_notify_event_t ev;
    xcb_void_cookie_t vcookie;
    xcb_generic_error_t *err;
    Ecore_X_Window root = 0;
@@ -677,10 +677,10 @@ ecore_x_mouse_in_send(Ecore_X_Window win, int x, int y)
    ev.root = root;
    ev.event_x = x;
    ev.event_y = y;
-   ev.same_screen = 1;
+   ev.same_screen_focus = 1;
    ev.mode = XCB_NOTIFY_MODE_NORMAL;
    ev.detail = XCB_NOTIFY_DETAIL_NONLINEAR;
-   ev.focus = 0;
+   /* ev.focus = 0; */
    ev.state = 0;
    ev.root_x = reply->dst_x;
    ev.root_y = reply->dst_y;
@@ -706,7 +706,7 @@ ecore_x_mouse_out_send(Ecore_X_Window win, int x, int y)
 {
    xcb_translate_coordinates_cookie_t cookie;
    xcb_translate_coordinates_reply_t *reply;
-   xcb_motion_notify_event_t ev;
+   xcb_leave_notify_event_t ev;
    xcb_void_cookie_t vcookie;
    xcb_generic_error_t *err;
    Ecore_X_Window root = 0;
@@ -727,10 +727,10 @@ ecore_x_mouse_out_send(Ecore_X_Window win, int x, int y)
    ev.root = root;
    ev.event_x = x;
    ev.event_y = y;
-   ev.same_screen = 1;
+   ev.same_screen_focus = 1;
    ev.mode = XCB_NOTIFY_MODE_NORMAL;
    ev.detail = XCB_NOTIFY_DETAIL_NONLINEAR;
-   ev.focus = 0;
+   /* ev.focus = 0; */
    ev.state = 0;
    ev.root_x = reply->dst_x;
    ev.root_y = reply->dst_y;