mirror of
https://github.com/brl/mutter.git
synced 2025-07-22 09:21:22 +00:00
frames: Don't make a round trip to the X server for every MotionNotify
Instead, simply use the coordinates that were passed to us from the MotionNotify event.
This commit is contained in:
@ -226,6 +226,8 @@ maybe_redirect_mouse_event (XEvent *xevent)
|
||||
gevent = gdk_event_new (GDK_MOTION_NOTIFY);
|
||||
gevent->motion.window = g_object_ref (gdk_window);
|
||||
gevent->motion.time = xev_d->time;
|
||||
gevent->motion.x = xev_d->event_x;
|
||||
gevent->motion.y = xev_d->event_y;
|
||||
gevent->motion.x_root = xev_d->root_x;
|
||||
gevent->motion.y_root = xev_d->root_y;
|
||||
|
||||
|
Reference in New Issue
Block a user