summaryrefslogtreecommitdiffstats
path: root/views/events/event_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/events/event_gtk.cc')
-rw-r--r--views/events/event_gtk.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/events/event_gtk.cc b/views/events/event_gtk.cc
index 8b29369..a3496c1 100644
--- a/views/events/event_gtk.cc
+++ b/views/events/event_gtk.cc
@@ -16,10 +16,14 @@ namespace {
ui::EventType EventTypeFromNative(NativeEvent native_event) {
// Add new event types as necessary.
switch (native_event->type) {
+ case GDK_ENTER_NOTIFY:
+ return ui::ET_MOUSE_ENTERED;
case GDK_KEY_PRESS:
return ui::ET_KEY_PRESSED;
case GDK_KEY_RELEASE:
return ui::ET_KEY_RELEASED;
+ case GDK_LEAVE_NOTIFY:
+ return ui::ET_MOUSE_EXITED;
case GDK_SCROLL:
return ui::ET_MOUSEWHEEL;
default: