aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-17 18:43:41 +0100
committerDavid Robillard <d@drobilla.net>2020-03-17 18:58:42 +0100
commit8ecb682579e5a8236cddf151ec200f5ea07d3292 (patch)
tree51d8bf5ba75384d4365071f42559b5ad626107c0 /test
parent163748d173af0ebeeec80b1e414169e72d23bb24 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.h6
1 files changed, 3 insertions, 3 deletions
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,