From 8ecb682579e5a8236cddf151ec200f5ea07d3292 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Mar 2020 18:43:41 +0100 Subject: Use clearer names for pointer events These old "notify" names are a smell from X11 which is a bit strange and inconsistent here, since nearly everything is a "notification" of sorts. I think the new names here are much more clear since they are consistent with the keyboard focus events. --- test/test_utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test_utils.h b/test/test_utils.h index cef94dd..34b66c0 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -103,12 +103,12 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) event->scroll.x, event->scroll.y) + printModifiers(event->scroll.state)); - case PUGL_ENTER_NOTIFY: + case PUGL_POINTER_IN: return PRINT("%sMouse enter at " PFMT "\n", prefix, event->crossing.x, event->crossing.y); - case PUGL_LEAVE_NOTIFY: + case PUGL_POINTER_OUT: return PRINT("%sMouse leave at " PFMT "\n", prefix, event->crossing.x, @@ -160,7 +160,7 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) event->expose.height); case PUGL_CLOSE: return PRINT("%sClose\n", prefix); - case PUGL_MOTION_NOTIFY: + case PUGL_MOTION: return PRINT("%sMouse motion at " PFMT "\n", prefix, event->motion.x, -- cgit v1.2.1