[gtk+/wip/mir-unstable] mir: emit GDK_ENTER_NOTIFY on pointer enter
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir-unstable] mir: emit GDK_ENTER_NOTIFY on pointer enter
- Date: Mon, 22 Jun 2015 02:08:38 +0000 (UTC)
commit 321b559526dc084f5850213c937ce31954382f00
Author: William Hua <william hua canonical com>
Date: Sun Jun 21 22:07:44 2015 -0400
mir: emit GDK_ENTER_NOTIFY on pointer enter
gdk/mir/gdkmireventsource.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c
index b884602..3fc7ed9 100644
--- a/gdk/mir/gdkmireventsource.c
+++ b/gdk/mir/gdkmireventsource.c
@@ -386,6 +386,13 @@ handle_motion_event (GdkWindow *window, const MirInputEvent *event)
}
break;
+ case mir_pointer_action_enter:
+ if (!cursor_inside)
+ {
+ cursor_inside = TRUE;
+ generate_crossing_event (window, GDK_ENTER_NOTIFY, x, y, event_time);
+ }
+ break;
case mir_pointer_action_leave:
if (cursor_inside)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]