[PATCH app/xev] xev: fix 'mode' in default case (version 2)
Peter Hutterer
peter.hutterer at who-t.net
Tue Jul 31 01:33:32 UTC 2018
On Sat, Jul 28, 2018 at 08:28:36AM +0000, Eitan Adler wrote:
> Signed-off-by: Eitan Adler <lists at eitanadler.com>
To ssh://gitlab.freedesktop.org/xorg/app/xev
d1f08f6..25bb70e master -> master
thanks
Cheers,
Peter
> ---
> xev.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xev.c b/xev.c
> index 6cde09a..638eae7 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) {
> @@ -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) {
> --
> 2.18.0
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
>
More information about the xorg-devel
mailing list