diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index f7c3916b7..14045c04e 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -743,10 +743,6 @@ _e_drag_update(Ecore_X_Window root, int x, int y, Ecore_X_Atom action) int dx, dy, dw, dh; Ecore_X_Window win, ignore_win[2]; int responsive = 0; - static struct - { - Ecore_X_Window root, win; - } cache = {0, 0}; // double t1 = ecore_time_get(); //// if (_drag_current && !_xdnd) @@ -756,15 +752,7 @@ _e_drag_update(Ecore_X_Window root, int x, int y, Ecore_X_Atom action) /* FIXME: this is nasty. every x mouse event we go back to x and do * a whole bunch of round-trips narrowing down the toplevel window * which contains the mouse */ - if (cache.win != root) - { - /* A little bit of caching to avoid trips to X. */ - cache.win = root; -// wtf - get root of root window? pointless! - cache.root = ecore_x_window_root_get(root); - cache.root = root; - } - win = ecore_x_window_shadow_tree_at_xy_with_skip_get(cache.root, x, y, ignore_win, 2); + win = ecore_x_window_shadow_tree_at_xy_with_skip_get(root, x, y, ignore_win, 2); // win = ecore_x_window_at_xy_with_skip_get(x, y, ignore_win, 2); } else