forked from enlightenment/enlightenment
parent
387cbbd1a3
commit
c5e189ecbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue