diff options
author | Eitan Adler <lists@eitanadler.com> | 2018-07-28 08:28:36 +0000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-31 11:32:32 +1000 |
commit | 25bb70e02407822ae5b03e74571275afcd037f98 (patch) | |
tree | 79525321f75c6094fdf3f676fab62b4b91956541 /xev.c | |
parent | d1f08f62b455f5921ee4b7c86bc5b8e92d2871ed (diff) |
xev: fix 'mode' in default case (version 2)
Signed-off-by: Eitan Adler <lists@eitanadler.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xev.c')
-rw-r--r-- | xev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { @@ -265,7 +265,7 @@ do_FocusIn (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) { |