[PATCH app/xev] xev: fix 'mode' in default case

Eitan Adler lists at eitanadler.com
Sat Jul 28 08:23:35 UTC 2018


Signed-off-by: Eitan Adler <lists at eitanadler.com>
---
 xev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xev.c b/xev.c
index 6cde09a..e42623b 100644
--- a/xev.c
+++ b/xev.c
@@ -225,7 +225,7 @@ do_EnterNotify (XEvent *eventp)
       case NotifyGrab:  mode = "NotifyGrab"; break;
       case NotifyUngrab:  mode = "NotifyUngrab"; break;
       case NotifyWhileGrabbed:  mode = "NotifyWhileGrabbed"; break;
-      default:  mode = dmode, sprintf (dmode, "%u", e->mode); break;
+      default:  mode = dmode; sprintf (dmode, "%u", e->mode); break;
     }
 
     switch (e->detail) {
-- 
2.18.0



More information about the xorg-devel mailing list