From d593a61b395e2fef8be97f9e4e2d610aa65bbd78 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 30 Apr 2015 15:28:16 +0200 Subject: [PATCH] wayland: do not generate motion events Mutter generates a motion event for every button and scroll events, which confuses Xwayland apps that rely on XMotionEvents for various purposes, e.g. it fools rxvt jumpy mouse detection code. Remove the call to notify_motion() from the button and scroll event handlers to avoid these spurious motion events. https://bugzilla.gnome.org/show_bug.cgi?id=748705 --- src/wayland/meta-wayland-pointer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index 1531a4a00..a229fe224 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -339,8 +339,6 @@ handle_button_event (MetaWaylandPointer *pointer, { gboolean implicit_grab; - notify_motion (pointer, event); - implicit_grab = (event->type == CLUTTER_BUTTON_PRESS) && (pointer->button_count == 1); if (implicit_grab) { @@ -363,8 +361,6 @@ handle_scroll_event (MetaWaylandPointer *pointer, struct wl_list *l; wl_fixed_t x_value = 0, y_value = 0; - notify_motion (pointer, event); - if (clutter_event_is_pointer_emulated (event)) return;