From: Peter Hutterer Date: Tue, 14 Jul 2009 06:13:48 +0000 (+1000) Subject: Use XI2 defines for enter/leave modes and detail. X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/59fc7423bf0e8d29747074449e7a3484cafb2f42?ds=inline;hp=--cc Use XI2 defines for enter/leave modes and detail. Doesn't matter much since they are the same as the core ones anyway, but nicer for consistency. Signed-off-by: Peter Hutterer --- 59fc7423bf0e8d29747074449e7a3484cafb2f42 diff --git a/src/test_xi2.c b/src/test_xi2.c index aa1a9a8..39f4f19 100644 --- a/src/test_xi2.c +++ b/src/test_xi2.c @@ -156,21 +156,21 @@ static void print_enterleave(XILeaveEvent* event) event->root, event->event, event->child); switch(event->mode) { - case NotifyNormal: mode = "NotifyNormal"; break; - case NotifyGrab: mode = "NotifyGrab"; break; - case NotifyUngrab: mode = "NotifyUngrab"; break; - case NotifyWhileGrabbed: mode = "NotifyWhileGrabbed"; break; + case XINotifyNormal: mode = "NotifyNormal"; break; + case XINotifyGrab: mode = "NotifyGrab"; break; + case XINotifyUngrab: mode = "NotifyUngrab"; break; + case XINotifyWhileGrabbed: mode = "NotifyWhileGrabbed"; break; } switch (event->detail) { - case NotifyAncestor: detail = "NotifyAncestor"; break; - case NotifyVirtual: detail = "NotifyVirtual"; break; - case NotifyInferior: detail = "NotifyInferior"; break; - case NotifyNonlinear: detail = "NotifyNonlinear"; break; - case NotifyNonlinearVirtual: detail = "NotifyNonlinearVirtual"; break; - case NotifyPointer: detail = "NotifyPointer"; break; - case NotifyPointerRoot: detail = "NotifyPointerRoot"; break; - case NotifyDetailNone: detail = "NotifyDetailNone"; break; + case XINotifyAncestor: detail = "NotifyAncestor"; break; + case XINotifyVirtual: detail = "NotifyVirtual"; break; + case XINotifyInferior: detail = "NotifyInferior"; break; + case XINotifyNonlinear: detail = "NotifyNonlinear"; break; + case XINotifyNonlinearVirtual: detail = "NotifyNonlinearVirtual"; break; + case XINotifyPointer: detail = "NotifyPointer"; break; + case XINotifyPointerRoot: detail = "NotifyPointerRoot"; break; + case XINotifyDetailNone: detail = "NotifyDetailNone"; break; } printf(" mode: %s (detail %s)\n", mode, detail); printf(" flags: %s %s\n", event->focus ? "[focus]" : "",