[gtk+] mir: Update cursor position
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: Update cursor position
- Date: Tue, 2 Jun 2015 19:27:21 +0000 (UTC)
commit a43efc665576c0da58771931774f56d4faffb1b8
Author: William Hua <william hua canonical com>
Date: Wed May 20 09:47:44 2015 -0500
mir: Update cursor position
gdk/mir/gdkmireventsource.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c
index a598fe5..5b55254 100644
--- a/gdk/mir/gdkmireventsource.c
+++ b/gdk/mir/gdkmireventsource.c
@@ -383,7 +383,11 @@ handle_motion_event (GdkWindow *window, const MirInputEvent *event)
if (hscroll > 0.5 || vscroll > 0.5)
generate_scroll_event (window, x, y, hscroll, vscroll, modifier_state, event_time);
if (ABS (new_x - x) > 0.5 || ABS (new_y - y) > 0.5)
- generate_motion_event (window, new_x, new_y, modifier_state, event_time);
+ {
+ generate_motion_event (window, new_x, new_y, modifier_state, event_time);
+ x = new_x;
+ y = new_y;
+ }
break;
case mir_pointer_action_leave:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]